forked from cerc-io/ipld-eth-server
Drop else when if statement includes return
This commit is contained in:
parent
0ded7bcd62
commit
eba868ff00
@ -130,9 +130,8 @@ func logError(description string, err error, header core.Header) {
|
|||||||
func getCheckCount(recheckHeaders constants.TransformerExecution) int64 {
|
func getCheckCount(recheckHeaders constants.TransformerExecution) int64 {
|
||||||
if recheckHeaders == constants.HeaderUnchecked {
|
if recheckHeaders == constants.HeaderUnchecked {
|
||||||
return 1
|
return 1
|
||||||
} else {
|
|
||||||
return constants.RecheckHeaderCap
|
|
||||||
}
|
}
|
||||||
|
return constants.RecheckHeaderCap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (extractor *LogExtractor) updateCheckedHeaders(config transformer.EventTransformerConfig) error {
|
func (extractor *LogExtractor) updateCheckedHeaders(config transformer.EventTransformerConfig) error {
|
||||||
|
@ -49,9 +49,8 @@ func (client RpcClient) CallContext(ctx context.Context, result interface{}, met
|
|||||||
//Ganache however does not ignore it, and throws an 'Incorrect number of arguments' error.
|
//Ganache however does not ignore it, and throws an 'Incorrect number of arguments' error.
|
||||||
if args == nil {
|
if args == nil {
|
||||||
return client.client.CallContext(ctx, result, method)
|
return client.client.CallContext(ctx, result, method)
|
||||||
} else {
|
|
||||||
return client.client.CallContext(ctx, result, method, args...)
|
|
||||||
}
|
}
|
||||||
|
return client.client.CallContext(ctx, result, method, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client RpcClient) IpcPath() string {
|
func (client RpcClient) IpcPath() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user