Skip to content

Commit

Permalink
Merge pull request #2901 from cuishuang/main
Browse files Browse the repository at this point in the history
refactor: Directly swap variable values
  • Loading branch information
FabianKramm authored Sep 30, 2024
2 parents 4a4c55c + 2ea4cad commit bbe33ff
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 bbe33ff

Please sign in to comment.