From dc1fcd1d24c1f71da822f362fc8ccfce888a1888 Mon Sep 17 00:00:00 2001 From: jst Date: Mon, 10 Dec 2012 19:52:41 +0100 Subject: [PATCH] gofmt --- converter.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/converter.go b/converter.go index 13efd07..bdc8185 100644 --- a/converter.go +++ b/converter.go @@ -34,12 +34,12 @@ type genericConverter struct { } func replicateBorder1d(x, min, max int) int { - if (x < min) { + if x < min { x = min - } else if (x >= max) { - x = max-1 + } else if x >= max { + x = max - 1 } - + return x } @@ -49,7 +49,6 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) { return } - func (c *genericConverter) at(x, y int) colorArray { r, g, b, a := c.src.At(x, y).RGBA() return colorArray{