Skip to content

Commit

Permalink
Merge pull request #7 from actboy168/patch-1
Browse files Browse the repository at this point in the history
“=” should be “==”
  • Loading branch information
gulrak authored Mar 5, 2019
2 parents 39f9a9d + ade387c commit 71d05aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -3642,7 +3642,7 @@ inline bool remove(const path& p, std::error_code& ec) noexcept
DWORD attr = GetFileAttributesW(np.c_str());
if (attr == INVALID_FILE_ATTRIBUTES) {
auto error = ::GetLastError();
if (error = ERROR_FILE_NOT_FOUND || error == ERROR_PATH_NOT_FOUND) {
if (error == ERROR_FILE_NOT_FOUND || error == ERROR_PATH_NOT_FOUND) {
return false;
}
ec = std::error_code(error, std::system_category());
Expand Down

0 comments on commit 71d05aa

Please sign in to comment.