Skip to content

Commit

Permalink
comment initial check
Browse files Browse the repository at this point in the history
  • Loading branch information
teleivo committed Sep 7, 2021
1 parent d9d5e80 commit 0a35171
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ func run(args []string, out io.Writer) error {
if err != nil {
return err
}

if *basedir == "" {
return errors.New("basedir must be provided")
}

t := time.NewTicker(time.Minute * time.Duration(*interval))
defer t.Stop()

// check usage once right after starting up
checkUsage(*basedir, *limit, out)
for {
select {
Expand Down

0 comments on commit 0a35171

Please sign in to comment.