mirror of
https://github.com/NixOS/nix.git
synced 2024-11-29 02:02:27 +00:00
* Minor cleanup.
This commit is contained in:
parent
2d456fc35a
commit
23960e92df
@ -712,9 +712,7 @@ static Path _addToStore(bool fixed, bool recursive,
|
||||
/* The first check above is an optimisation to prevent
|
||||
unnecessary lock acquisition. */
|
||||
|
||||
PathSet lockPaths;
|
||||
lockPaths.insert(dstPath);
|
||||
PathLocks outputLock(lockPaths);
|
||||
PathLocks outputLock(singleton<PathSet, Path>(dstPath));
|
||||
|
||||
if (!isValidPath(dstPath)) {
|
||||
|
||||
@ -764,9 +762,7 @@ Path addTextToStore(const string & suffix, const string & s,
|
||||
|
||||
if (!readOnlyMode && !isValidPath(dstPath)) {
|
||||
|
||||
PathSet lockPaths;
|
||||
lockPaths.insert(dstPath);
|
||||
PathLocks outputLock(lockPaths);
|
||||
PathLocks outputLock(singleton<PathSet, Path>(dstPath));
|
||||
|
||||
if (!isValidPath(dstPath)) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user