Unverified Commit 11761eda authored by Artturin's avatar Artturin Committed by GitHub
Browse files

rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid...

rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid masking return values.' (#321146)
parents bc1400c9 893e0f37
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -81,11 +81,13 @@ newPkgs() {
    # could eat too much memory for a standard 4GiB machine.
    local -a list
    for i in 1 2; do
        local l="$($MKTEMP)"
        local l
        l="$($MKTEMP)"
        list[$i]="$l"
        toRemove+=("$l")

        local expr="$($MKTEMP)"
        local expr
        expr="$($MKTEMP)"
        toRemove+=("$expr")
        nixexpr "${!i}" > "$expr"