Commit ffe57ea 1 parent 9d48ef2 commit ffe57ea Copy full SHA for ffe57ea
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ The arguments should be float type.
23
23
-- {% endif %}
24
24
{%- if unit == ' mi' %}
25
25
{% set conversion_rate = 1 %}
26
- {% elif unit == ' km' %}
26
+ {% elif unit == ' km ' %}
27
27
{% set conversion_rate = 1 .60934 %}
28
28
{% else %}
29
- {{ exceptions .raise_compiler_error (" unit input must be one of 'mi' or 'km'. Got ' ~ unit' " ) }}
29
+ {{ exceptions .raise_compiler_error (" unit input must be one of 'mi' or 'km'. Got " ~ unit) }}
30
30
{% endif %}
31
31
32
32
2 * 3961 * asin(sqrt(pow((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2 ))), 2 ) +
@@ -54,7 +54,7 @@ The arguments should be float type.
54
54
{% elif unit == ' km' %}
55
55
{% set conversion_rate = 1 .60934 %}
56
56
{% else %}
57
- {{ exceptions .raise_compiler_error (" unit input must be one of 'mi' or 'km'. Got ' ~ unit' " ) }}
57
+ {{ exceptions .raise_compiler_error (" unit input must be one of 'mi' or 'km'. Got " ~ unit) }}
58
58
{% endif %}
59
59
2 * 3961 * asin(sqrt(pow(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2 ), 2 ) +
60
60
cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *
You can’t perform that action at this time.
0 commit comments