💄 Pass linter
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Ada 2024-04-08 03:29:41 +02:00
parent 0b0d0fd99e
commit ae1fc6c8d4
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
3 changed files with 2 additions and 5 deletions

View file

@ -48,7 +48,5 @@ func (config Config) Verify() error {
return errCloneDirectoryUnwritable return errCloneDirectoryUnwritable
} }
// TODO: verify RepoList not redundant
return nil return nil
} }

View file

@ -7,7 +7,7 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
// start a regular background tasks // start a regular background tasks.
func start(duration time.Duration, fn func(), name string) { func start(duration time.Duration, fn func(), name string) {
for { for {
time.Sleep(duration) 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) { func Launch(duration time.Duration, config []git.RepoConfig) {
var counter int var counter int
for _, content := range config { for _, content := range config {

View file

@ -39,7 +39,6 @@ func (config RepoConfig) fullClone() {
if err != nil { if err != nil {
log.Panic(err) log.Panic(err)
} }
} }
func (config RepoConfig) Update() { func (config RepoConfig) Update() {