Skip to content

Commit

Permalink
Remove unnecessary error wrap in ValidatedOracleSpecToml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Sep 13, 2023
1 parent aafc41c commit ef7d1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/ocr/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ValidatedOracleSpecToml(legacyChains evm.LegacyChainContainer, tomlString s
return ValidatedOracleSpecTomlCfg(func(id *big.Int) (evmconfig.ChainScopedConfig, error) {
c, err := legacyChains.Get(id.String())
if err != nil {
return nil, errors.Wrap(err, "invalid oracle spec")
return nil, err
}
return c.Config(), nil
}, tomlString)
Expand Down

0 comments on commit ef7d1a3

Please sign in to comment.