refactor(3p/nix): Apply clang-tidy's readability-* fixes
This applies the readability fixes listed here: https://clang.llvm.org/extra/clang-tidy/checks/list.html
This commit is contained in:
parent
d331d3a0b5
commit
689ef502f5
78 changed files with 863 additions and 792 deletions
|
|
@ -59,7 +59,7 @@ static void atomicWrite(const Path& path, const std::string& s) {
|
|||
Path tmp = path + ".tmp." + std::to_string(getpid());
|
||||
AutoDelete del(tmp, false);
|
||||
writeFile(tmp, s);
|
||||
if (rename(tmp.c_str(), path.c_str())) {
|
||||
if (rename(tmp.c_str(), path.c_str()) != 0) {
|
||||
throw SysError(format("renaming '%1%' to '%2%'") % tmp % path);
|
||||
}
|
||||
del.cancel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue