Skip to content

Commit

Permalink
styling on if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed May 30, 2024
1 parent 4f9f45e commit 0ba88d8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/CappedFallbackRateSource.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@ contract CappedFallbackRateSource is IRateSource {
// Ignore the error and use the default rate
}

if (sourceRate < lowerBound) {
return lowerBound;
} else if (sourceRate > upperBound) {
return upperBound;
} else {
return sourceRate;
}
if (sourceRate < lowerBound) return lowerBound;
else if (sourceRate > upperBound) return upperBound;

return sourceRate;
}

function decimals() external view override returns (uint8) {
Expand Down

0 comments on commit 0ba88d8

Please sign in to comment.