Skip to content

Commit

Permalink
fix: lint for #337 (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamewozniak authored Jan 18, 2024
1 parent d5357cc commit b086a55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b086a55

Please sign in to comment.