Skip to content

Commit

Permalink
Add invocation to assure interface compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Mar 11, 2024
1 parent 0343883 commit 6db5182
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/credentials/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ import (

type optionFunc func(*Credentials) error

var _ Option = optionFunc(nil)

func (f optionFunc) apply(c *Credentials) error {
return f(c)
}

type nilOptionFunc func(*Credentials)

var _ Option = nilOptionFunc(nil)

func (f nilOptionFunc) apply(c *Credentials) error {
f(c)
return nil
Expand Down

0 comments on commit 6db5182

Please sign in to comment.