From 0a351712f0d39c78f4d93256cb745542b2e6d668 Mon Sep 17 00:00:00 2001 From: teleivo Date: Tue, 7 Sep 2021 08:01:49 +0200 Subject: [PATCH] comment initial check --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 21d7b3e..9bac992 100644 --- a/main.go +++ b/main.go @@ -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 {