fix(3p/nix): Fix incorrectly braced conditionals and loops
Fixes mistakes introduced by clang-tidy in the previous commit.
This commit is contained in:
parent
b490742a51
commit
09cbc431cc
16 changed files with 62 additions and 61 deletions
7
third_party/nix/src/libexpr/primops.cc
vendored
7
third_party/nix/src/libexpr/primops.cc
vendored
|
@ -1966,9 +1966,9 @@ static void prim_concatStringSep(EvalState& state, const Pos& pos, Value** args,
|
|||
if (first) {
|
||||
first = false;
|
||||
} else {
|
||||
res
|
||||
res += sep;
|
||||
}
|
||||
+= sep;
|
||||
|
||||
res += state.coerceToString(pos, *args[1]->listElems()[n], context);
|
||||
}
|
||||
|
||||
|
@ -2103,9 +2103,8 @@ void fetch(EvalState& state, const Pos& pos, Value** args, Value& v,
|
|||
throw EvalError(format("'url' argument required, at %1%") % pos);
|
||||
|
||||
} else {
|
||||
request
|
||||
request.uri = state.forceStringNoCtx(*args[0], pos);
|
||||
}
|
||||
.uri = state.forceStringNoCtx(*args[0], pos);
|
||||
|
||||
state.checkURI(request.uri);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue