helpers: apply some Golint rules

This commit is contained in:
bep
2015-03-07 00:02:06 +01:00
parent e685dfc0c6
commit bd2b679eaf
4 changed files with 39 additions and 46 deletions

View File

@@ -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])
}
}
}