diff --git a/internal/config/toml.go b/internal/config/toml.go index d504ba1..2f6271e 100644 --- a/internal/config/toml.go +++ b/internal/config/toml.go @@ -48,7 +48,5 @@ func (config Config) Verify() error { return errCloneDirectoryUnwritable } - // TODO: verify RepoList not redundant - return nil } diff --git a/internal/cron/start.go b/internal/cron/start.go index b3023f1..978f316 100644 --- a/internal/cron/start.go +++ b/internal/cron/start.go @@ -7,7 +7,7 @@ import ( "github.com/sirupsen/logrus" ) -// start a regular background tasks +// start a regular background tasks. func start(duration time.Duration, fn func(), name string) { for { time.Sleep(duration) @@ -17,7 +17,7 @@ func start(duration time.Duration, fn func(), name string) { } } -// Launch all repo update background tasks +// Launch all repo update background tasks. func Launch(duration time.Duration, config []git.RepoConfig) { var counter int for _, content := range config { diff --git a/internal/git/clone.go b/internal/git/clone.go index df39720..fd8a567 100644 --- a/internal/git/clone.go +++ b/internal/git/clone.go @@ -39,7 +39,6 @@ func (config RepoConfig) fullClone() { if err != nil { log.Panic(err) } - } func (config RepoConfig) Update() {