From 0004a9c7e0ee11868148606b852e3526a36af3da Mon Sep 17 00:00:00 2001 From: Michael Teuscher Date: Tue, 22 Jan 2019 23:31:10 +0100 Subject: [PATCH] Fixed last golint --- draw/braille_line.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/draw/braille_line.go b/draw/braille_line.go index 99731bb..68efec5 100644 --- a/draw/braille_line.go +++ b/draw/braille_line.go @@ -140,12 +140,11 @@ func brailleLinePoints(start, end image.Point) []image.Point { return lineLow(end.X, end.Y, start.X, start.Y) } return lineLow(start.X, start.Y, end.X, end.Y) - } else { - if start.Y > end.Y { - return lineHigh(end.X, end.Y, start.X, start.Y) - } - return lineHigh(start.X, start.Y, end.X, end.Y) } + if start.Y > end.Y { + return lineHigh(end.X, end.Y, start.X, start.Y) + } + return lineHigh(start.X, start.Y, end.X, end.Y) } // lineLow returns points that create a line whose horizontal projection