From 41615ae38e7ad32bd20e94c8486129481838ac53 Mon Sep 17 00:00:00 2001 From: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:54:37 -0800 Subject: [PATCH] fix: lint for #337 --- config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 3431171..92cc6c2 100644 --- a/config/config.go +++ b/config/config.go @@ -173,7 +173,10 @@ func (c Config) validateDeviations() error { func (c Config) validateGas() error { var errs []string if (c.GasPrevote > 0) != (c.GasVote > 0) { - errs = append(errs, "if gas_prevote is set, then gas_vote must be set as well; similarly, if gas_vote is set, then gas_prevote must be set as well") + errs = append(errs, + fmt.Sprintf("%s%s", "if gas_prevote is set, then gas_vote must be set as well;", + "similarly, if gas_vote is set, then gas_prevote must be set as well"), + ) } if c.GasVote <= 0 && c.GasAdjustment <= 0 { errs = append(errs, "either gas_vote and gas_prevote must be set or gas_adjustment must be set")