aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build_test.go
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <[email protected]>2019-08-02 15:28:43 +0000
committerBjørn Erik Pedersen <[email protected]>2019-08-10 20:11:51 +0200
commitc577a9ed2347559783c44232e1f08414008c5203 (patch)
tree04cb53ae9303a2b8058f4663220fd8aa842f3f87 /hugolib/hugo_sites_build_test.go
parenta93cbb0d6cc6e3a78ba34aa372abc5b41ca24b2c (diff)
downloadhugo-c577a9ed2347559783c44232e1f08414008c5203.tar.gz
hugo-c577a9ed2347559783c44232e1f08414008c5203.zip
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
Diffstat (limited to 'hugolib/hugo_sites_build_test.go')
-rw-r--r--hugolib/hugo_sites_build_test.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go
index 123c27b9c..15e4920f0 100644
--- a/hugolib/hugo_sites_build_test.go
+++ b/hugolib/hugo_sites_build_test.go
@@ -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)