Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpner committed Jan 12, 2016
1 parent c717d4a commit 09bf608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/resizer/smartcrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (s smartcropResizer) smartResize(input image.Image, dstWidth, dstHeight int

faceAreaPercentage := float64(faceArea) / float64(imagePixels)
if faceAreaPercentage < faceImageTreshold {
return nil, errors.New(fmt.Sprintf("face area too small: %.2f.\n", faceAreaPercentage))
return nil, fmt.Errorf("face area too small: %.2f.\n", faceAreaPercentage)
}

if sub, ok := input.(subImager); ok {
Expand Down

0 comments on commit 09bf608

Please sign in to comment.