Skip to content

Commit 41615ae

Browse files
committed
fix: lint for #337
1 parent d5357cc commit 41615ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ func (c Config) validateDeviations() error {
173173
func (c Config) validateGas() error {
174174
var errs []string
175175
if (c.GasPrevote > 0) != (c.GasVote > 0) {
176-
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")
176+
errs = append(errs,
177+
fmt.Sprintf("%s%s", "if gas_prevote is set, then gas_vote must be set as well;",
178+
"similarly, if gas_vote is set, then gas_prevote must be set as well"),
179+
)
177180
}
178181
if c.GasVote <= 0 && c.GasAdjustment <= 0 {
179182
errs = append(errs, "either gas_vote and gas_prevote must be set or gas_adjustment must be set")

0 commit comments

Comments
 (0)