From 882f46148f90ede56ec1b9a51034345936862fe6 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 73443e93f5..b7eecbb067 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