Skip to content

Commit baf5b0c

Browse files
committed
Apply suggestions
1 parent 5b845bb commit baf5b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/georef.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ end
158158

159159
# point builder for given crs and lenunit
160160
function pointbuilder(crs, u)
161-
if !isnothing(u)
161+
if isnothing(u)
162+
(coords...) -> Point(crs(coords...))
163+
else
162164
if crs <: Cartesian
163165
(xyz...) -> Point(crs(withunit.(xyz, u)...))
164166
elseif crs <: Polar
@@ -170,8 +172,6 @@ function pointbuilder(crs, u)
170172
else
171173
(coords...) -> Point(crs(coords...))
172174
end
173-
else
174-
(coords...) -> Point(crs(coords...))
175175
end
176176
end
177177

0 commit comments

Comments
 (0)