fs/io/FileOutputStream: add noexcept

This commit is contained in:
Max Kellermann 2021-01-21 21:04:15 +01:00
parent 9b2eb74f95
commit 12ff5a547f

View File

@ -176,7 +176,7 @@ FileOutputStream::Cancel() noexcept
*/ */
static bool static bool
OpenTempFile(FileDescriptor directory_fd, OpenTempFile(FileDescriptor directory_fd,
FileDescriptor &fd, Path path) FileDescriptor &fd, Path path) noexcept
{ {
if (directory_fd != FileDescriptor(AT_FDCWD)) if (directory_fd != FileDescriptor(AT_FDCWD))
return fd.Open(directory_fd, ".", O_TMPFILE|O_WRONLY, 0666); return fd.Open(directory_fd, ".", O_TMPFILE|O_WRONLY, 0666);