Skip to content

Commit 122fb12

Browse files
Update LengthedGeohash.swift
1 parent 111c15e commit 122fb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FlitsGeohash/LengthedGeohash.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public struct LengthedGeohash<Length: GeohashLengthed>: Hashable, Sendable {
142142
public func toLowerLength<L: GeohashLengthed>() -> LengthedGeohash<L>? {
143143
let otherLength = L.length
144144
if otherLength == Length.length {
145-
return self as? LengthedGeohash<L>
145+
return .init(string: string)
146146
}
147147
if otherLength > Length.length {
148148
return nil

0 commit comments

Comments
 (0)