From: Didier Spezia Date: Sun, 23 Aug 2015 13:09:02 +0000 (+0000) Subject: image/gif: map/slice literals janitoring X-Git-Tag: go1.6beta1~1178 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=220b5f7b548101b892232da8ad80a75dfecd7046;p=gostls13.git image/gif: map/slice literals janitoring Simplify slice/map literal expressions. Caught with gofmt -d -s, fixed with gofmt -w -s Change-Id: Iefd5f263c4f89a81da9427a7b9d97f13c35ab64f Reviewed-on: https://go-review.googlesource.com/13838 Reviewed-by: Andrew Gerrand --- diff --git a/src/image/gif/writer_test.go b/src/image/gif/writer_test.go index db61a5c3c2..775ccea31d 100644 --- a/src/image/gif/writer_test.go +++ b/src/image/gif/writer_test.go @@ -328,11 +328,11 @@ func TestEncodeAllFramesOutOfBounds(t *testing.T) { func TestEncodeNonZeroMinPoint(t *testing.T) { points := []image.Point{ - image.Point{-8, -9}, - image.Point{-4, -4}, - image.Point{-3, +3}, - image.Point{+0, +0}, - image.Point{+2, +2}, + {-8, -9}, + {-4, -4}, + {-3, +3}, + {+0, +0}, + {+2, +2}, } for _, p := range points { src := image.NewPaletted(image.Rectangle{Min: p, Max: p.Add(image.Point{6, 6})}, palette.Plan9)