Skip to content

Commit

Permalink
github: make it a Maintainer (#158)
Browse files Browse the repository at this point in the history
In order to be a Maintainer, the GitHub Storage implementation must respond to `Maintain()`. Unlike all the other implementations, the GitHub implementation's Maintain() method was on the pointer receiver. This fix should allow the GitHub Storage implementation to be a Maintainer.
  • Loading branch information
parkr authored Jan 2, 2025
1 parent 20d72fa commit cdc8b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (gh *Storage) GetIndex() (map[string]int64, error) {
}

// Maintain deletes check files that are older than gh.CheckExpiry.
func (gh *Storage) Maintain() error {
func (gh Storage) Maintain() error {
if gh.CheckExpiry == 0 {
return nil
}
Expand Down

0 comments on commit cdc8b78

Please sign in to comment.