Swallow the error in a more idiomatic way

This commit is contained in:
Théophane Hufschmitt
2022-11-16 10:34:32 +01:00
committed by GitHub
parent 16f1720fd2
commit 60dea270d0
+2 -3
View File
@@ -258,9 +258,8 @@ void SourceExprCommand::completeInstallable(std::string_view prefix)
getDefaultFlakeAttrPaths(),
prefix);
}
} catch (EvalError& e) {
// swallow eval error
(void)e;
} catch (EvalError&) {
// Don't want eval errors to mess-up with the completion engine, so let's just swallow them
}
}