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:
parent
8b83e0f31b
commit
4ea8cc3730
1 changed files with 1 additions and 1 deletions
2
third_party/nix/src/libutil/config.cc
vendored
2
third_party/nix/src/libutil/config.cc
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue