Skip to content

Commit

Permalink
Revert "Path: If a Path is empty, the slash operator will not add an …
Browse files Browse the repository at this point in the history
…additional slash."

This reverts commit 864b2bb.
  • Loading branch information
hrydgard committed Jun 27, 2023
1 parent aefedb1 commit 19b494b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Common/File/Path.cpp
Expand Up @@ -84,9 +84,7 @@ Path Path::operator /(const std::string &subdir) const {
}

// Direct string manipulation.
if (path_.empty()) {
return Path(subdir);
}

if (subdir.empty()) {
return Path(path_);
}
Expand Down

0 comments on commit 19b494b

Please sign in to comment.