Skip to content

Commit

Permalink
refactor: Directly swap variable values
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Sep 27, 2024
1 parent 4a4c55c commit 2ea4cad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/devspace/sync/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ func (arr testCaseList) Less(i, j int) bool {
}

func (arr testCaseList) Swap(i, j int) {
x := arr[i]
arr[i] = arr[j]
arr[j] = x
arr[i], arr[j] = arr[j], arr[i]
}

const fileContents = "TestContents"
Expand Down

0 comments on commit 2ea4cad

Please sign in to comment.