We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef563c commit b3009dcCopy full SHA for b3009dc
commit.go
@@ -85,9 +85,7 @@ func (c *Commit) IsImageFile(name string) bool {
85
}
86
buf := make([]byte, 1024)
87
n, _ := dataRc.Read(buf)
88
- if n > 0 {
89
- buf = buf[:n]
90
- }
+ buf = buf[:n]
91
_, isImage := isImageFile(buf)
92
return isImage
93
git.go
@@ -10,7 +10,7 @@ import (
10
"time"
11
)
12
13
-const _VERSION = "0.4.1"
+const _VERSION = "0.4.2"
14
15
func Version() string {
16
return _VERSION
0 commit comments