Skip to content

Commit 67fa59f

Browse files
committed
style
1 parent 9fdcde5 commit 67fa59f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

FirebaseAI/Sources/Tool.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,14 @@ public struct LatLng: Sendable, Encodable {
253253
public let longitude: Double
254254

255255
public init(latitude: Double, longitude: Double) {
256-
precondition(latitude >= -90.0 && latitude <= 90.0, "Latitude must be in the range [-90.0, 90.0].")
257-
precondition(longitude >= -180.0 && longitude <= 180.0, "Longitude must be in the range [-180.0, 180.0].")
256+
precondition(
257+
latitude >= -90.0 && latitude <= 90.0,
258+
"Latitude must be in the range [-90.0, 90.0]."
259+
)
260+
precondition(
261+
longitude >= -180.0 && longitude <= 180.0,
262+
"Longitude must be in the range [-180.0, 180.0]."
263+
)
258264
self.latitude = latitude
259265
self.longitude = longitude
260266
}

0 commit comments

Comments
 (0)