Skip to content

Commit c1ba465

Browse files
committed
Fix build error
1 parent 0c6d8cc commit c1ba465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/App/Commands/Alerting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private extension TimeAmount {
306306

307307
private extension TimeInterval {
308308
func rounded(decimalPlaces: Int) -> Self {
309-
let scale = (pow(10, decimalPlaces) as NSDecimalNumber).doubleValue
309+
let scale = Double.pow(10, decimalPlaces)
310310
return (self * scale).rounded(.toNearestOrAwayFromZero) / scale
311311
}
312312
}

0 commit comments

Comments
 (0)