mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
helpers: apply some Golint rules
This commit is contained in:
@@ -110,13 +110,13 @@ func TestSliceToLowerNonDestructive(t *testing.T) {
|
||||
// This assignment actually copies the content
|
||||
// of input into a new object.
|
||||
// Otherwise, the test would not make sense...
|
||||
input_copy := input
|
||||
inputCopy := input
|
||||
|
||||
SliceToLower(input)
|
||||
|
||||
for i, e := range input {
|
||||
if e != input_copy[i] {
|
||||
t.Errorf("TestSliceToLowerNonDestructive failed. Expected element #%d of input slice to be %s. Found %s.", i, input_copy[i], input[i])
|
||||
if e != inputCopy[i] {
|
||||
t.Errorf("TestSliceToLowerNonDestructive failed. Expected element #%d of input slice to be %s. Found %s.", i, inputCopy[i], input[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user