linting
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
// Returns the reordered slice with updated indices, or an error if indices are invalid
|
||||
func IndexableRefs(items []model.IndexableRef, oldIndex, newIndex int) ([]model.IndexableRef, error) {
|
||||
// Find the item to reorder
|
||||
var targetIndex int = -1
|
||||
targetIndex := -1
|
||||
for i, item := range items {
|
||||
if item.Index == oldIndex {
|
||||
targetIndex = i
|
||||
|
||||
Reference in New Issue
Block a user