Commit fe6e032a authored by hellekin's avatar hellekin

Make rubocop happy with import scripts

parent 09d26ce0
......@@ -5,9 +5,8 @@ require_relative '../../config/environment'
Mobility.locale = :en
if taxonomy = Taxonomy.i18n.find_by(name: 'Dewey Maps')
raise ArgumentError, 'Dewey Maps Taxonomy already exists: aborted.'
end
taxonomy = Taxonomy.i18n.find_by(name: 'Dewey Maps')
raise ArgumentError, 'Dewey Maps Taxonomy already exists: aborted.' if taxonomy.present?
require 'json'
......@@ -35,7 +34,6 @@ unless agent
"Dewey Maps Agent cannot be created!\n#{agent&.errors&.inspect}\n#{e.message}"
end
# Taxonomy.create!(name: 'Dewey Maps', agent_id: agent.id, summary: 'The original IN COMMON classification.')
dewey = agent.taxonomies.create!(
name: 'Dewey Maps',
summary: 'The original IN COMMON classification.'
......
# coding: utf-8
# frozen_string_literal: true
require_relative '../../config/application'
......@@ -13,8 +12,7 @@ if agent.blank?
email: 'info@asblrcr.be',
uri: 'https://www.asblrcr.be',
email_validated: true,
uri_is_origin: true
)
uri_is_origin: true)
end
raise ArgumentError, "RCR Agent cannot be created!\n#{agent&.errors&.inspect}" unless agent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment