Skip to content

Commit 1216606

Browse files
authored
fix: Corrected indentation of guard clause (#11)
1 parent 72fe037 commit 1216606

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/sequel/pgt_outbox.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def depth_guard_clause(depth_limit = nil)
3939
depth_limit = depth_limit.to_i
4040
raise ArgumentError, ':trigger_depth_limit option must be at least 1' unless depth_limit >= 1
4141

42-
<<-SQL
43-
IF pg_trigger_depth() > #{depth_limit} THEN
44-
RETURN NEW;
42+
<<~SQL
43+
IF pg_trigger_depth() > #{depth_limit} THEN
44+
RETURN NEW;
4545
END IF;
4646
SQL
4747
end

test/sequel/test_pgt_outbox.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Crass
1515
def depth_sql(depth)
1616
<<~SQL.strip
1717
IF pg_trigger_depth() > #{depth} THEN
18-
RETURN NEW;
19-
END IF;
18+
RETURN NEW;
19+
END IF;
2020
SQL
2121
end
2222

0 commit comments

Comments
 (0)