Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden committed Nov 11, 2024
1 parent 6fef4dd commit c540ba4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions story-details.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ func (s Story) RankDiff() int32 {
return rawRank - topRank
}


func abs(a int32) int32 {
if a >= 0 {
return a
}
return -a
if a >= 0 {
return a
}
return -a
}

func (s Story) RankDiffAbs() int32 {
Expand Down

0 comments on commit c540ba4

Please sign in to comment.