Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Nov 23, 2015
1 parent 8b181f9 commit f19be0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hound.go
Expand Up @@ -67,14 +67,14 @@ func (h *Hound) Sniff(fileName string, hunk *diff.Hunk, warnc chan string, failc

if pattern, warned := h.MatchPatterns(h.Warns, line); warned {
msg := color.YellowString(fmt.Sprintf(
"Warning: pattern `%s` match found for `%s` starting at line %d in %s\n",
"warning: pattern `%s` match found for `%s` starting at line %d in %s\n",
pattern, line, hunk.NewStartLine, fileName))
warnc <- msg
}

if pattern, failed := h.MatchPatterns(h.Fails, line); failed {
msg := color.RedString(fmt.Sprintf(
"Failure: pattern `%s` match found for `%s` starting at line %d in %s\n",
"failure: pattern `%s` match found for `%s` starting at line %d in %s\n",
pattern, line, hunk.NewStartLine, fileName))
failc <- errors.New(msg)
}
Expand Down
2 changes: 1 addition & 1 deletion hound_test.go
Expand Up @@ -101,7 +101,7 @@ index 000000..000000 000000
warnc := make(chan string)
failc := make(chan error)
donec := make(chan bool)

go hound.Sniff(fileName, hunk, warnc, failc, donec)

select {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -66,7 +66,7 @@ func main() {
}

if failCount > 0 {
fmt.Printf("%d failures detected. Please fix them before you can commit.\n", failCount)
fmt.Printf("%d failures detected - please fix them before you can commit.\n", failCount)
os.Exit(1)
}
}
Expand Down

0 comments on commit f19be0c

Please sign in to comment.