Skip to content

Commit 586c834

Browse files
committed
Apply improvements suggested by the linter
1 parent f578db3 commit 586c834

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ lint:
2727
--deadline=120s \
2828
--line-length=120 \
2929
--enable-all \
30+
--disable=gochecknoinits --disable=gochecknoglobals \
3031
--vendor ./...
3132

3233
test:

gaper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ func Run(cfg *Config, chOSSiginal chan os.Signal) error {
7171
return run(cfg, chOSSiginal, builder, runner, watcher)
7272
}
7373

74-
func run(cfg *Config, chOSSiginal chan os.Signal, builder Builder, runner Runner, watcher Watcher) error { // nolint: gocyclo
74+
// nolint: gocyclo
75+
func run(cfg *Config, chOSSiginal chan os.Signal, builder Builder, runner Runner, watcher Watcher) error {
7576
if err := builder.Build(); err != nil {
7677
return fmt.Errorf("build error: %v", err)
7778
}

watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (w *watcher) Watch() {
8989
}
9090

9191
// Events get events occurred during the watching
92-
// these events are emited only a file changing is detected
92+
// these events are emitted only a file changing is detected
9393
func (w *watcher) Events() chan string {
9494
return w.events
9595
}

0 commit comments

Comments
 (0)