Skip to content

Commit

Permalink
Update services/horizon/internal/flags.go
Browse files Browse the repository at this point in the history
Co-authored-by: tamirms <[email protected]>
  • Loading branch information
urvisavla and tamirms authored Oct 5, 2023
1 parent 532e701 commit 894845b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/horizon/internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,14 +751,14 @@ func setCaptiveCoreConfiguration(config *Config, options ApplyOptions) error {
}
config.NetworkPassphrase = defaultNetworkConfig.NetworkPassphrase
config.HistoryArchiveURLs = defaultNetworkConfig.HistoryArchiveURLs
}

if config.NetworkPassphrase == "" {
return fmt.Errorf("%s must be set", NetworkPassphraseFlagName)
}
} else {

Check failure on line 754 in services/horizon/internal/flags.go

View workflow job for this annotation

GitHub Actions / golangci

File is not `gofmt`-ed with `-s` (gofmt)
if config.NetworkPassphrase == "" {
return fmt.Errorf("%s must be set", NetworkPassphraseFlagName)
}

if len(config.HistoryArchiveURLs) == 0 {
return fmt.Errorf("%s must be set", HistoryArchiveURLsFlagName)
if len(config.HistoryArchiveURLs) == 0 {
return fmt.Errorf("%s must be set", HistoryArchiveURLsFlagName)
}
}

config.CaptiveCoreTomlParams.CoreBinaryPath = config.CaptiveCoreBinaryPath
Expand Down

0 comments on commit 894845b

Please sign in to comment.