From ae1fc6c8d433ec09ea00873ce3d429bd709ce8e9 Mon Sep 17 00:00:00 2001 From: Ada Date: Mon, 8 Apr 2024 03:29:41 +0200 Subject: [PATCH] :lipstick: Pass linter --- internal/config/toml.go | 2 -- internal/cron/start.go | 4 ++-- internal/git/clone.go | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) 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() {