Skip to content

Commit cdc8b78

Browse files
authored
github: make it a Maintainer (#158)
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.
1 parent 20d72fa commit cdc8b78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (gh *Storage) GetIndex() (map[string]int64, error) {
295295
}
296296

297297
// Maintain deletes check files that are older than gh.CheckExpiry.
298-
func (gh *Storage) Maintain() error {
298+
func (gh Storage) Maintain() error {
299299
if gh.CheckExpiry == 0 {
300300
return nil
301301
}

0 commit comments

Comments
 (0)