Go formatting! & Fix HoundCI violation
@@ -153,9 +153,8 @@ func builtinArrayInstanceMethods() []*BuiltinMethodObject {
if indexValue < 0 {
if arr.normalizeIndex(index) == -1 {
return t.vm.initErrorObject(errors.InternalError, sourceLine, "Index value %d too small for array. minimum: %d", indexValue, -arr.length())
- } else {
- indexValue = arr.normalizeIndex(index)
}
+ indexValue = arr.normalizeIndex(index)
}
a := args[2]
