Skip to content

Commit

Permalink
Use error_code::clear
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 18, 2025
1 parent 95fe3ac commit 8d2b445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ std::string read(entry::native_handle_type handle, std::error_code& ec) {
content.write(buffer.data(), read);
}

ec = std::error_code();
ec.clear();
return std::move(content).str();
}

Expand Down Expand Up @@ -133,7 +133,7 @@ void write(entry::native_handle_type handle, std::string_view content,

content = content.substr(written);
} while (!content.empty());
ec = std::error_code();
ec.clear();
}
} // namespace

Expand Down

0 comments on commit 8d2b445

Please sign in to comment.