diff --git a/daemon/history.go b/daemon/history.go index 0b125ad2b3..f717508726 100644 --- a/daemon/history.go +++ b/daemon/history.go @@ -19,9 +19,7 @@ func (history *History) Less(i, j int) bool { func (history *History) Swap(i, j int) { containers := *history - tmp := containers[i] - containers[i] = containers[j] - containers[j] = tmp + containers[i], containers[j] = containers[j], containers[i] } func (history *History) Add(container *Container) {