From 5e50eadb49c133ce940b0ee82acfd8b47bfc117f Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 11 Aug 2023 13:40:14 +0100 Subject: [PATCH] refactor: lint --- .../organisation_relationship_import_service.rb | 2 +- lib/tasks/full_import.rake | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/app/services/imports/organisation_relationship_import_service.rb b/app/services/imports/organisation_relationship_import_service.rb index 4873da539..d13ae4d87 100644 --- a/app/services/imports/organisation_relationship_import_service.rb +++ b/app/services/imports/organisation_relationship_import_service.rb @@ -4,7 +4,7 @@ module Imports import_from(folder, :create_organisation_relationships) end - private + private def create_organisation_relationship(xml_document) parent_organisation_id = find_organisation_id(xml_document, "parent-institution") diff --git a/lib/tasks/full_import.rake b/lib/tasks/full_import.rake index 9c41ac85b..bacdb500a 100644 --- a/lib/tasks/full_import.rake +++ b/lib/tasks/full_import.rake @@ -111,15 +111,3 @@ namespace :import do desc "Run a full import for the institutions listed in the named file on s3" task :full, %i[institutions_csv_name] => %i[environment initial logs trigger_invites generate_reports] end - -require 'benchmark' - -class Rake::Task - def execute_with_benchmark(*args) - bm = Benchmark.measure { execute_without_benchmark(*args) } - puts " #{name} --> #{bm}" - end - - alias_method :execute_without_benchmark, :execute - alias_method :execute, :execute_with_benchmark -end