Skip to content

Commit

Permalink
check if non-empty instead of if set
Browse files Browse the repository at this point in the history
  • Loading branch information
aaperis committed Dec 15, 2024
1 parent acf2d59 commit 8a9b000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sda-download/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (c *Map) appConfig() error {
}

var err error
if viper.IsSet("app.c4gh.privateKeyPath") {
if viper.GetString("app.c4gh.privateKeyPath") != "" {

if !viper.IsSet("app.c4gh.passphrase") {
return errors.New("app.c4gh.passphrase is not set")
Expand Down

0 comments on commit 8a9b000

Please sign in to comment.