Skip to content

Commit 4b2d348

Browse files
committed
more rubocop
1 parent 6369b0f commit 4b2d348

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/dfe/analytics/services/entity_table_checks.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@ def supported_adapter_and_environment?
4646

4747
def fetch_current_timestamp_in_time_zone
4848
utc_timestamp = case connection.adapter_name.downcase
49-
when 'postgresql', 'postgis'
50-
connection.select_value("SELECT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC')::text AS current_timestamp_utc")
51-
when 'sqlite3', 'sqlite'
52-
connection.select_value("SELECT CURRENT_TIMESTAMP AS current_timestamp_utc")
53-
else
54-
nil
55-
end
49+
when 'postgresql', 'postgis'
50+
connection.select_value("SELECT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC')::text AS current_timestamp_utc")
51+
when 'sqlite3', 'sqlite'
52+
connection.select_value('SELECT CURRENT_TIMESTAMP AS current_timestamp_utc')
53+
end
5654

5755
if utc_timestamp.present?
5856
Time.use_zone(TIME_ZONE) do

0 commit comments

Comments
 (0)