Fixed ineffectual assignments

Dropped/fixed ineffectual assignments after static code analysis.
This commit is contained in:
Christian Muehlhaeuser
2019-08-02 15:28:43 +00:00
committed by Bjørn Erik Pedersen
parent a93cbb0d6c
commit c577a9ed23
5 changed files with 14 additions and 12 deletions

View File

@@ -1204,12 +1204,15 @@ func readFileFromFs(t testing.TB, fs afero.Fs, filename string) string {
end++
}
root := filepath.Join(parts[start:end]...)
if hadSlash {
root = helpers.FilePathSeparator + root
}
/*
root := filepath.Join(parts[start:end]...)
if hadSlash {
root = helpers.FilePathSeparator + root
}
helpers.PrintFs(fs, root, os.Stdout)
*/
//helpers.PrintFs(fs, root, os.Stdout)
t.Fatalf("Failed to read file: %s", err)
}
return string(b)