Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Jul 25, 2024
1 parent b872658 commit c437fd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions macros/format_float_value.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% macro format_float_value(value) %}

{% if target.name != 'prod' %}
CAST({{value}} as Float32)
{% else %}
{{ value }}
{% if target.name != "prod" %} CAST({{ value }} as Float32)
{% else %} {{ value }}
{% endif %}

{% endmacro %}
8 changes: 3 additions & 5 deletions macros/source_for_test.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% macro source_for_test(schema,table) %}
{% macro source_for_test(schema, table) %}

{% if target.name != 'prod' %}
{{ source(target.schema,table)}}
{% else %}
{{ source(schema,table) }}
{% if target.name != "prod" %} {{ source(target.schema, table) }}
{% else %} {{ source(schema, table) }}
{% endif %}

{% endmacro %}

0 comments on commit c437fd3

Please sign in to comment.