Drop else when if statement includes return

This commit is contained in:
Rob Mulholand
2019-10-31 13:33:39 -05:00
parent 0ded7bcd62
commit eba868ff00
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -130,9 +130,8 @@ func logError(description string, err error, header core.Header) {
func getCheckCount(recheckHeaders constants.TransformerExecution) int64 {
if recheckHeaders == constants.HeaderUnchecked {
return 1
} else {
return constants.RecheckHeaderCap
}
return constants.RecheckHeaderCap
}
func (extractor *LogExtractor) updateCheckedHeaders(config transformer.EventTransformerConfig) error {