Skip to content

Commit 7382852

Browse files
fzakariaxokdvium
andauthored
Update src/libflake/lockfile.cc
Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
1 parent 6e37776 commit 7382852

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/libflake/lockfile.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ std::pair<nlohmann::json, LockFile::KeyMap> LockFile::toJSON() const
200200
return k->second;
201201

202202
if (!keys.insert(key).second) {
203-
/* Resume from the last suffix used for this base key rather than
204-
rescanning from 2. The insert check still guards against a name
205-
that legitimately occurs in the lock file (e.g. "systems_2"). */
206203
auto & suffix = keySuffixes[key];
207204
for (;;) {
208205
suffix = suffix < 2 ? 2 : suffix + 1;

0 commit comments

Comments
 (0)