From 6db5182c9af4f8e9d2d38cca6962b07a8d655ec8 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Mon, 11 Mar 2024 09:44:19 -0700 Subject: [PATCH] Add invocation to assure interface compliance. --- internal/credentials/options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/credentials/options.go b/internal/credentials/options.go index 57fe799..56b3f57 100644 --- a/internal/credentials/options.go +++ b/internal/credentials/options.go @@ -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