Skip to content

Commit

Permalink
Address staticcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Dec 29, 2017
1 parent e76df81 commit a9331d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/perf/perf.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (perf *Perf) stopProfiling() (err error) {
}
perf.shouldProfile = false
perf.profiling = false
return nil
return err
}

func (perf *Perf) takeProfile() error {
Expand Down
2 changes: 1 addition & 1 deletion proofs/showroom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func run() (rerr error) {
commands, mute := input.Channel(os.Stdin)
defer mute()

sigwinch := make(chan os.Signal)
sigwinch := make(chan os.Signal, 1)
signal.Notify(sigwinch, syscall.SIGWINCH)

world := newWorld()
Expand Down
2 changes: 1 addition & 1 deletion proofs/splash/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func run() (rerr error) {
commands, mute := input.Channel(os.Stdin)
defer mute()

sigwinch := make(chan os.Signal)
sigwinch := make(chan os.Signal, 1)
signal.Notify(sigwinch, syscall.SIGWINCH)

ticker := time.NewTicker(time.Second / 60)
Expand Down

0 comments on commit a9331d7

Please sign in to comment.