Skip to content

Commit af6fba9

Browse files
committed
fix: remove unused parameter path in loadStoresConfig() function
1 parent e1de1cf commit af6fba9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/sops/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ func findConfigFile() (string, error) {
23122312
return result.Path, err
23132313
}
23142314

2315-
func loadStoresConfig(c *cli.Command, path string) (*config.StoresConfig, error) {
2315+
func loadStoresConfig(c *cli.Command) (*config.StoresConfig, error) {
23162316
configPath := c.String("config")
23172317
if configPath == "" {
23182318
// Ignore config not found errors returned from findConfigFile since the config file is not mandatory
@@ -2326,15 +2326,15 @@ func loadStoresConfig(c *cli.Command, path string) (*config.StoresConfig, error)
23262326
}
23272327

23282328
func inputStore(c *cli.Command, path string) (common.Store, error) {
2329-
storesConf, err := loadStoresConfig(c, path)
2329+
storesConf, err := loadStoresConfig(c)
23302330
if err != nil {
23312331
return nil, err
23322332
}
23332333
return common.DefaultStoreForPathOrFormat(storesConf, path, c.String("input-type")), nil
23342334
}
23352335

23362336
func outputStore(c *cli.Command, path string) (common.Store, error) {
2337-
storesConf, err := loadStoresConfig(c, path)
2337+
storesConf, err := loadStoresConfig(c)
23382338
if err != nil {
23392339
return nil, err
23402340
}

0 commit comments

Comments
 (0)