mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
a93cbb0d6c
commit
c577a9ed23
@@ -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)
|
||||
|
Reference in New Issue
Block a user