]> Cypherpunks repositories - gostls13.git/commitdiff
image/gif: map/slice literals janitoring
authorDidier Spezia <didier.06@gmail.com>
Sun, 23 Aug 2015 13:09:02 +0000 (13:09 +0000)
committerNigel Tao <nigeltao@golang.org>
Fri, 4 Sep 2015 11:58:15 +0000 (11:58 +0000)
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 <adg@golang.org>
src/image/gif/writer_test.go

index db61a5c3c2ecc4c9fb742eca6165efc3dcd158eb..775ccea31dcf655fc7cb603dfed88f8e46b75c47 100644 (file)
@@ -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)