fix(3p/nix): allow blank lines in nix.conf

Change-Id: I5ab040a62e123c57fe712b252fbf84fe5a8bc026
Reviewed-on: https://cl.tvl.fyi/c/depot/+/547
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Luke Granger-Brown 2020-06-21 21:39:49 +01:00 committed by lukegb
parent 8b83e0f31b
commit 4ea8cc3730

View file

@ -103,7 +103,7 @@ void AbstractConfig::applyConfigFile(const Path& path) {
// TODO(tazjin): absl::string_view after path functions are fixed.
std::vector<std::string> tokens =
absl::StrSplit(line, absl::ByAnyChar(" \t\n\r"));
absl::StrSplit(line, absl::ByAnyChar(" \t\n\r"), absl::SkipWhitespace());
if (tokens.empty()) {
continue;
}