Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Jun 8, 2023
1 parent b9662cf commit 6b44aa3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ func (h *Handler) UpdateShare(w http.ResponseWriter, r *http.Request) {
return
}
h.updateShare(w, r, shareID) // TODO PUT is used with incomplete data to update a share}

}

func (h *Handler) updateShare(w http.ResponseWriter, r *http.Request, shareID string) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Map[T, V any](l []T, f func(T) V) []V {
}

// Remove removes the element in position i from the list.
// It does not preserve the order of the original slice
// It does not preserve the order of the original slice.
func Remove[T any](l []T, i int) []T {
l[i] = l[len(l)-1]
return l[:len(l)-1]
Expand Down

0 comments on commit 6b44aa3

Please sign in to comment.