Skip to content

Commit

Permalink
fix: fix a lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Nov 27, 2024
1 parent e512a29 commit 3ff010d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serve/methods/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func calculateGasFeePerBlock(block *types.Block) map[string]*gasFeeTotalInfo {
}

// calculateGasFee merges the gas fee statistics from a block into the global statistics.
func calculateGasFee(currentInfo *gasFeeTotalInfo, blockInfo *gasFeeTotalInfo) *gasFeeTotalInfo {
func calculateGasFee(currentInfo, blockInfo *gasFeeTotalInfo) *gasFeeTotalInfo {
if currentInfo == nil {
currentInfo = &gasFeeTotalInfo{}
}
Expand Down Expand Up @@ -107,6 +107,7 @@ func min(current, newValue int64) int64 {
if current == 0 || newValue < current {
return newValue
}

return current
}

Expand All @@ -115,5 +116,6 @@ func max(current, newValue int64) int64 {
if newValue > current {
return newValue
}

return current
}

0 comments on commit 3ff010d

Please sign in to comment.