From 2ea4cad3eeb28fd984ff87919aaed00710dbbee0 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Fri, 27 Sep 2024 15:34:33 +0800 Subject: [PATCH] refactor: Directly swap variable values Signed-off-by: cuishuang --- pkg/devspace/sync/util_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/devspace/sync/util_test.go b/pkg/devspace/sync/util_test.go index 024bbae255..3ed4ceaa05 100644 --- a/pkg/devspace/sync/util_test.go +++ b/pkg/devspace/sync/util_test.go @@ -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"