Skip to content

Commit

Permalink
nolint:funlen
Browse files Browse the repository at this point in the history
  • Loading branch information
yanue committed Jul 9, 2021
1 parent 912b87a commit ac9abc0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gowatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"regexp"
"sort"
"strings"
"sync"
"time"

"github.com/howeyc/fsnotify"
Expand All @@ -19,7 +18,6 @@ import (

var (
cmd *exec.Cmd
state sync.Mutex
eventTime = make(map[string]int64)
scheduleTime time.Time
)
Expand Down Expand Up @@ -108,6 +106,7 @@ func getFileModTime(path string) int64 {
var building bool

// Autobuild auto build
// nolint:funlen
func Autobuild(files []string) {
if building {
log.Infof("still in building...\n")
Expand All @@ -117,8 +116,6 @@ func Autobuild(files []string) {
defer func() {
building = false
}()
state.Lock()
defer state.Unlock()

log.Infof("Start building...\n")

Expand Down

0 comments on commit ac9abc0

Please sign in to comment.