From e8d148c8befb9b5e673d828ba858252777efcc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E4=B8=96=E6=88=90?= Date: Tue, 6 Nov 2018 09:57:40 +0800 Subject: [PATCH] Fixed the golint issue --- convert/convert_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/convert/convert_test.go b/convert/convert_test.go index 739b21b..3b3d6ee 100644 --- a/convert/convert_test.go +++ b/convert/convert_test.go @@ -115,7 +115,7 @@ func TestImageFile2CharPixelMatrix(t *testing.T) { convertOptions.Colored = false matrix := converter.ImageFile2CharPixelMatrix(tt.imageFilename, &convertOptions) - if len(matrix) != tt.height || len(matrix[0]) != tt.width{ + if len(matrix) != tt.height || len(matrix[0]) != tt.width { t.Errorf("image %s convert expected to %+v, %+v, but get %+v", tt.imageFilename, tt.width, tt.height, matrix) } @@ -186,9 +186,4 @@ func ExampleImageConverter_ImageFile2ASCIIString() { convertOptions.Colored = false asciiString := converter.ImageFile2ASCIIString(imageFilename, &convertOptions) fmt.Println(asciiString) - /* Output: -@@@ -@@@ -@@@ - */ } -- 2.45.2