Skip to content

Commit

Permalink
commit: minor fix on bug cut
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Aug 31, 2016
1 parent 2ef563c commit b3009dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ func (c *Commit) IsImageFile(name string) bool {
}
buf := make([]byte, 1024)
n, _ := dataRc.Read(buf)
if n > 0 {
buf = buf[:n]
}
buf = buf[:n]
_, isImage := isImageFile(buf)
return isImage
}
Expand Down
2 changes: 1 addition & 1 deletion git.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"
)

const _VERSION = "0.4.1"
const _VERSION = "0.4.2"

func Version() string {
return _VERSION
Expand Down

0 comments on commit b3009dc

Please sign in to comment.