Fix clang compilation

This commit is contained in:
Eelco Dolstra 2023-02-01 20:34:44 +01:00
parent 57a4258426
commit e8ca49f6ef

View file

@ -219,7 +219,7 @@ std::optional<FlakeRef> LockFile::isUnlocked() const
visit(root);
for (auto & i : nodes) {
if (i == root) continue;
if (i == ref<const Node>(root)) continue;
auto node = i.dynamic_pointer_cast<const LockedNode>();
if (node && !node->lockedRef.input.isLocked())
return node->lockedRef;