summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/callbacks.rb
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 10:44:44 -0500
committerAustin Ziegler <austin@zieglers.ca>2022-07-04 20:26:10 -0400
commitf85ec381137c6838600b16c353ff9dba3a05452c (patch)
tree7a2718961e97c56d4c70dc0a6ebe6b17aee005fc /lib/diff/lcs/callbacks.rb
parentef23b66e9a495206f2bf1cd9ce0df50d363d26ef (diff)
downloaddiff-lcs-f85ec381137c6838600b16c353ff9dba3a05452c.tar.gz
standardrb --only Style/StringLiterals --fix
Diffstat (limited to 'lib/diff/lcs/callbacks.rb')
-rw-r--r--lib/diff/lcs/callbacks.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diff/lcs/callbacks.rb b/lib/diff/lcs/callbacks.rb
index 2a7665b..c075327 100644
--- a/lib/diff/lcs/callbacks.rb
+++ b/lib/diff/lcs/callbacks.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-require 'diff/lcs/change'
+require "diff/lcs/change"
module Diff::LCS # rubocop:disable Style/Documentation
# This callback object implements the default set of callback events,
@@ -131,11 +131,11 @@ class Diff::LCS::DiffCallbacks
end
def discard_a(event)
- @hunk << Diff::LCS::Change.new('-', event.old_position, event.old_element)
+ @hunk << Diff::LCS::Change.new("-", event.old_position, event.old_element)
end
def discard_b(event)
- @hunk << Diff::LCS::Change.new('+', event.new_position, event.new_element)
+ @hunk << Diff::LCS::Change.new("+", event.new_position, event.new_element)
end
def finish_hunk