about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 19:13:13 +0200
committerAlan Pearce2024-06-29 19:13:13 +0200
commit01e9fdd7f65cd5beeb89e43befd4e595e6837a2d (patch)
tree1006135650838579cae0b937b7fca2b1f04613f5
parent7749962c24172c29fd8851afb86e923b5d5f369c (diff)
downloadwebsite-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.tar.lz
website-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.tar.zst
website-01e9fdd7f65cd5beeb89e43befd4e595e6837a2d.zip
refactor: remove unused argument
-rw-r--r--internal/vcs/repository.go4
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()