Skip to content

Commit

Permalink
Linting auto-correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed Jul 21, 2020
1 parent 3a0098a commit 36aedec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/search/client/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def delete_index

def pre_index
delete_index
index = client.indices.create(
index = client.indices.create!(
index: index_name,
body: settings,
)
Expand Down
8 changes: 4 additions & 4 deletions lib/tasks/data_import.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ task data_import: ["data_import:sectors", "data_import:activities", "data_import
namespace :data_import do
desc "Import all data"
task all: :environment do
DataImporter::Sectors.update
DataImporter::Activities.update
DataImporter::Licences.update
DataImporter::Sectors.update!
DataImporter::Activities.update!
DataImporter::Licences.update!
end

desc "Import all sector data"
Expand All @@ -21,7 +21,7 @@ namespace :data_import do

desc "Import all licence data"
task licences: :environment do
DataImporter::Licences.update
DataImporter::Licences.update!
# Now migrate the imported licences to use the new gds_id
LicenceDataMigrator.migrate
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/data_importer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
expect(importer).to receive(:run)
expect(DataImporter).to receive(:new).and_return(importer)

DataImporter.update
DataImporter.update!
end

it "closes import file even if an exception is raised" do
Expand Down

0 comments on commit 36aedec

Please sign in to comment.