From 052860b594532e59801b5841d5d1451e88973886 Mon Sep 17 00:00:00 2001 From: Urvi Date: Tue, 3 Oct 2023 13:04:10 -0700 Subject: [PATCH] Fix linter errors --- services/horizon/internal/flags.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/horizon/internal/flags.go b/services/horizon/internal/flags.go index 4bb8414470..0b900350c1 100644 --- a/services/horizon/internal/flags.go +++ b/services/horizon/internal/flags.go @@ -709,11 +709,13 @@ func getCaptiveCoreConfigFromNetworkParameter(config *Config) (networkConfig, er var defaultNetworkConfig networkConfig if config.NetworkPassphrase != "" { - return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", NetworkPassphraseFlagName, NetworkFlagName) + return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", + NetworkPassphraseFlagName, NetworkFlagName) } if len(config.HistoryArchiveURLs) > 0 { - return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", HistoryArchiveURLsFlagName, NetworkFlagName) + return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", + HistoryArchiveURLsFlagName, NetworkFlagName) } switch config.Network { @@ -765,7 +767,7 @@ func setCaptiveCoreConfiguration(config *Config, options ApplyOptions) error { config.CaptiveCoreTomlParams.NetworkPassphrase = config.NetworkPassphrase var err error - if options.RequireCaptiveCoreFullConfig == false { + if !options.RequireCaptiveCoreFullConfig { // Creates a minimal captive-core config (without quorum information), just enough to run captive core. // This is used by certain database commands, such as `reingest and fill-gaps, to reingest historical data. config.CaptiveCoreToml, err = ledgerbackend.NewCaptiveCoreToml(config.CaptiveCoreTomlParams)