Skip to content

Commit

Permalink
chore: Naming
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Nov 4, 2023
1 parent 63f8d08 commit 50f02e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provider/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ import (
"github.com/bank-vaults/secret-init/provider"
)

type FileProvider struct {
type Provider struct {
SecretsFilePath string
}

func NewFileProvider(secretsFilePath string) provider.Provider {

return &FileProvider{SecretsFilePath: secretsFilePath}
return &Provider{SecretsFilePath: secretsFilePath}
}

func (provider *FileProvider) LoadSecrets(ctx context.Context, paths []string) ([]string, error) {
func (provider *Provider) LoadSecrets(_ context.Context, paths []string) ([]string, error) {

Check warning on line 32 in provider/file/file.go

View workflow job for this annotation

GitHub Actions / Lint

unused-parameter: parameter 'paths' seems to be unused, consider removing or renaming it as _ (revive)

return make([]string, 2), nil
}

0 comments on commit 50f02e9

Please sign in to comment.