diff options
author | Alan Pearce | 2024-06-29 19:13:13 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-29 19:13:13 +0200 |
commit | 01e9fdd7f65cd5beeb89e43befd4e595e6837a2d (patch) | |
tree | 1006135650838579cae0b937b7fca2b1f04613f5 /internal | |
parent | 7749962c24172c29fd8851afb86e923b5d5f369c (diff) | |
download | website-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.tar.lz website-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.tar.zst website-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.zip |
refactor: remove unused argument
Diffstat (limited to 'internal')
-rw-r--r-- | internal/vcs/repository.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/vcs/repository.go b/internal/vcs/repository.go index 42dc6f7..1dbf783 100644 --- a/internal/vcs/repository.go +++ b/internal/vcs/repository.go @@ -36,7 +36,7 @@ func CloneOrUpdate(cfg *Config) (*Repository, error) { repo := &Repository{ repo: gr, } - _, err := repo.Update(cfg) + _, err := repo.Update() if err != nil { return nil, err } @@ -49,7 +49,7 @@ func CloneOrUpdate(cfg *Config) (*Repository, error) { }, nil } -func (r *Repository) Update(cfg *Config) (bool, error) { +func (r *Repository) Update() (bool, error) { log.Info("updating repository") head, err := r.repo.Head() |