jst %!s(int64=13) %!d(string=hai) anos
pai
achega
dc1fcd1d24
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  1. 4 5
      converter.go

+ 4 - 5
converter.go

@@ -34,12 +34,12 @@ type genericConverter struct {
 }
 }
 
 
 func replicateBorder1d(x, min, max int) int {
 func replicateBorder1d(x, min, max int) int {
-	if (x < min) {
+	if x < min {
 		x = min
 		x = min
-	} else if (x >= max) {
-		x = max-1
+	} else if x >= max {
+		x = max - 1
 	}
 	}
-	
+
 	return x
 	return x
 }
 }
 
 
@@ -49,7 +49,6 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) {
 	return
 	return
 }
 }
 
 
-
 func (c *genericConverter) at(x, y int) colorArray {
 func (c *genericConverter) at(x, y int) colorArray {
 	r, g, b, a := c.src.At(x, y).RGBA()
 	r, g, b, a := c.src.At(x, y).RGBA()
 	return colorArray{
 	return colorArray{