Code Refactor (#1438)

* Code refactor
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
This commit is contained in:
Hang Yan
2021-10-03 17:33:43 +08:00
committed by GitHub
parent 9a6a24cb16
commit 5d7ed192a4
10 changed files with 149 additions and 214 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ func (env EnvSort) Less(i, j int) bool {
return env[i].Name < env[j].Name
}
// swaps the elements with indexes i and j.
// Swap swaps the elements with indexes i and j.
func (env EnvSort) Swap(i, j int) {
env[i], env[j] = env[j], env[i]
}