Skip to content

Commit d34921f

Browse files
authored
fix: remove double checking of config (#1629)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
1 parent ad28d12 commit d34921f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cli/cmd/setup/setup.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ func CredentialGraph(cmd *cobra.Command) error {
120120
} else if credCfg, err = credentialsConfig.LookupCredentialConfiguration(cfg); err != nil {
121121
return fmt.Errorf("could not get credential configuration: %w", err)
122122
}
123-
if credCfg == nil {
124-
credCfg = &credentialsRuntime.Config{}
125-
}
126123

127124
if credCfg == nil {
128125
credCfg = &credentialsRuntime.Config{}

0 commit comments

Comments
 (0)