Fixed last golint

This commit is contained in:
Michael Teuscher 2019-01-22 23:31:10 +01:00
parent 010ad3fc5b
commit 0004a9c7e0
No known key found for this signature in database
GPG Key ID: 3F38EF5228BAF9AF
1 changed files with 4 additions and 5 deletions

View File

@ -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