Skip to content

Commit

Permalink
Remove potential issue if prepare-commit-msg wrong writed
Browse files Browse the repository at this point in the history
  • Loading branch information
A.A.Abroskin committed Jul 12, 2019
1 parent 8b55d91 commit 59cd216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func recordedChecksum() string {
}

match := pattern.FindStringSubmatch(string(file))
if len(match) < 2 {
return ""
}

return match[1]
}
Expand Down

0 comments on commit 59cd216

Please sign in to comment.