diff --git a/.husky/pre-push b/.husky/pre-push index e2566670..f4a6f4a1 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -4,7 +4,7 @@ echo "Fixing changed files with lint violations..." -yarn prettier --write --ignore-unknown $(git diff "$(git merge-base main HEAD)" --name-only) || exit $? +yarn prettier --write --ignore-unknown $(git diff "$(git merge-base main HEAD)" --name-only --diff-filter=d) || exit $? echo echo "Auditing dependencies..." diff --git a/lib/super_diff/errors.rb b/lib/super_diff/errors.rb index 74121e12..1ff0759a 100644 --- a/lib/super_diff/errors.rb +++ b/lib/super_diff/errors.rb @@ -1,9 +1,5 @@ module SuperDiff module Errors - autoload( - :NoDiffFormatterAvailableError, - "super_diff/errors/no_diff_formatter_available_error" - ) autoload( :NoDifferAvailableError, "super_diff/errors/no_differ_available_error" diff --git a/lib/super_diff/errors/no_diff_formatter_available_error.rb b/lib/super_diff/errors/no_diff_formatter_available_error.rb deleted file mode 100644 index de5e6fa1..00000000 --- a/lib/super_diff/errors/no_diff_formatter_available_error.rb +++ /dev/null @@ -1,21 +0,0 @@ -module SuperDiff - module Errors - class NoDiffFormatterAvailableError < StandardError - def self.create(operation_tree) - allocate.tap do |error| - error.operation_tree = operation_tree - error.__send__(:initialize) - end - end - - attr_accessor :operation_tree - - def initialize - super(<<-MESSAGE) -There is no diff formatter available to handle an operation tree object of -#{operation_tree.class}. - MESSAGE - end - end - end -end diff --git a/lib/super_diff/errors/no_operational_sequencer_available_error.rb b/lib/super_diff/errors/no_operational_sequencer_available_error.rb deleted file mode 100644 index 2c8f193f..00000000 --- a/lib/super_diff/errors/no_operational_sequencer_available_error.rb +++ /dev/null @@ -1,22 +0,0 @@ -module SuperDiff - module Errors - class NoOperationalSequencerAvailableError < StandardError - def self.create(expected, actual) - allocate.tap do |error| - error.expected = expected - error.actual = actual - error.__send__(:initialize) - end - end - - attr_accessor :expected, :actual - - def initialize - super(<<-MESSAGE) -There is no operational sequencer available to handle an "expected" value of -type #{expected.class} and an "actual" value of type #{actual.class}. - MESSAGE - end - end - end -end