Skip to content

Commit ce450bc

Browse files
author
Mrunal Patel
authored
Merge pull request #1288 from rainrambler/patch-1
using golang-style assignment
2 parents 0fefa36 + 4449acd commit ce450bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcontainer/selinux/selinux.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ func uniqMcs(catRange uint32) string {
374374
continue
375375
} else {
376376
if c1 > c2 {
377-
t := c1
378-
c1 = c2
379-
c2 = t
377+
c1, c2 = c2, c1
380378
}
381379
}
382380
mcs = fmt.Sprintf("s0:c%d,c%d", c1, c2)

0 commit comments

Comments
 (0)