From 452236ece3ee295406eef9f11a34671cdea0afa2 Mon Sep 17 00:00:00 2001 From: David Roetzel Date: Mon, 1 Jul 2024 20:51:00 +0200 Subject: [PATCH] Remove superflous method call. No `nil` values to be expected here. --- app/lib/admin/system_check/missing_indexes_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/admin/system_check/missing_indexes_check.rb b/app/lib/admin/system_check/missing_indexes_check.rb index 73443e93f54..b7eecbb067e 100644 --- a/app/lib/admin/system_check/missing_indexes_check.rb +++ b/app/lib/admin/system_check/missing_indexes_check.rb @@ -19,7 +19,7 @@ class Admin::SystemCheck::MissingIndexesCheck < Admin::SystemCheck::BaseCheck @missing_indexes ||= begin expected_indexes_by_table.flat_map do |table, indexes| expected_indexes = indexes.map(&:name) - (expected_indexes - existing_indexes_for(table)).compact + expected_indexes - existing_indexes_for(table) end end end