chromium: use optionalString instead of 'then ""'

This is a backport of f3719756b5 for
Chromium (optional but useful to keep the diff small/manageable).
This commit is contained in:
Michael Weiss
2023-07-23 22:50:34 +02:00
parent 5ea62313fe
commit 688826eade

View File

@@ -135,9 +135,7 @@ let
};
};
suffix = if (channel == "stable" || channel == "ungoogled-chromium")
then ""
else "-" + channel;
suffix = lib.optionalString (channel != "stable" && channel != "ungoogled-chromium") ("-" + channel);
sandboxExecutableName = chromium.browser.passthru.sandboxExecutableName;