Skip to content

Commit

Permalink
Fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Feb 8, 2024
1 parent 4d2d36e commit 2bb1ef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/departure/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Departure
class Configuration
SUPPORTED_ADAPTERS = %i[trilogy mysql2]
SUPPORTED_ADAPTERS = %i[trilogy mysql2].freeze

attr_accessor :tmp_path, :global_percona_args, :enabled_by_default, :redirect_stderr, :adapter

Expand All @@ -18,11 +18,11 @@ def error_log_path
end

def adapter=(name)
if SUPPORTED_ADAPTERS.include?(name)
@adapter = name
else
unless SUPPORTED_ADAPTERS.include?(name)
raise ArgumentError, "Supported Departure adapters are #{SUPPORTED_ADAPTERS.inspect}"
end

@adapter = name
end

private
Expand Down
4 changes: 2 additions & 2 deletions spec/departure/runner_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'spec_helper'
require 'tempfile'

require "active_record/connection_adapters/mysql2_adapter"
require "active_record/connection_adapters/trilogy_adapter"
require 'active_record/connection_adapters/mysql2_adapter'
require 'active_record/connection_adapters/trilogy_adapter'

describe Departure::Runner do
shared_examples_for Departure::Runner do |adapter|
Expand Down

0 comments on commit 2bb1ef4

Please sign in to comment.