Skip to content

Commit

Permalink
One more attempt at fixing the formatting...
Browse files Browse the repository at this point in the history
  • Loading branch information
s3cur3 authored May 8, 2024
1 parent d726040 commit 89ff3b8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions lib/geo_postgis.ex
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,25 @@ defmodule Geo.PostGIS do
end

defmacro st_make_envelope(xMin, yMin, xMax, yMax) do
quote do: fragment("ST_MakeEnvelope(?, ?, ?, ?)", unquote(xMin), unquote(yMin), unquote(xMax), unquote(yMax))
quote do:
fragment(
"ST_MakeEnvelope(?, ?, ?, ?)",
unquote(xMin),
unquote(yMin),
unquote(xMax),
unquote(yMax)
)
end

defmacro st_make_envelope(xMin, yMin, xMax, yMax, srid) do
quote do: fragment("ST_MakeEnvelope(?, ?, ?, ?, ?)", unquote(xMin), unquote(yMin), unquote(xMax), unquote(yMax), unquote(srid))
quote do:
fragment(
"ST_MakeEnvelope(?, ?, ?, ?, ?)",
unquote(xMin),
unquote(yMin),
unquote(xMax),
unquote(yMax),
unquote(srid)
)
end
end

0 comments on commit 89ff3b8

Please sign in to comment.