Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Nov 17, 2023
1 parent 00f6ab6 commit e4a1981
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions flow/connectors/eventhub/hub_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ func (h *HubBatches) flushAllBatches(
rowCount = uint32(0)
}
rowCount += uint32(numEvents)
tableNameRowsMapping.Upsert(tblName.ToString(), rowCount, func(exist bool, valueInMap, newValue uint32) uint32 {
if exist {
return valueInMap
}
return newValue
})
tableNameRowsMapping.Upsert(tblName.ToString(), rowCount,
func(exist bool, valueInMap, newValue uint32) uint32 {
if exist {
return valueInMap
}
return newValue
})
return nil
})
})
Expand Down

0 comments on commit e4a1981

Please sign in to comment.