summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 11:14:33 -0500
committerAustin Ziegler <austin@zieglers.ca>2022-07-04 20:26:10 -0400
commit63bb988f761da3fa061c9e3b5d13785477bf44c5 (patch)
treec605f55a7e5cf7f8da98f3c2677a1c47ee71ecf3 /lib
parent99af1369a86b38585f6c63e9d50ac7040932916a (diff)
downloaddiff-lcs-63bb988f761da3fa061c9e3b5d13785477bf44c5.tar.gz
standardrb --only Layout/SpaceInsideHashLiteralBraces --fix
Diffstat (limited to 'lib')
-rw-r--r--lib/diff/lcs.rb4
-rw-r--r--lib/diff/lcs/hunk.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb
index 2214240..77b508f 100644
--- a/lib/diff/lcs.rb
+++ b/lib/diff/lcs.rb
@@ -578,8 +578,8 @@ class << Diff::LCS
# standard:disable Style/HashSyntax
PATCH_MAP = { # :nodoc:
- :patch => { "+" => "+", "-" => "-", "!" => "!", "=" => "=" }.freeze,
- :unpatch => { "+" => "-", "-" => "+", "!" => "!", "=" => "=" }.freeze
+ :patch => {"+" => "+", "-" => "-", "!" => "!", "=" => "="}.freeze,
+ :unpatch => {"+" => "-", "-" => "+", "!" => "!", "=" => "="}.freeze
}.freeze
# standard:enable Style/HashSyntax
diff --git a/lib/diff/lcs/hunk.rb b/lib/diff/lcs/hunk.rb
index d886ba2..9ff3638 100644
--- a/lib/diff/lcs/hunk.rb
+++ b/lib/diff/lcs/hunk.rb
@@ -6,8 +6,8 @@ require "diff/lcs/block"
# each block. (So if we're not using context, every hunk will contain one
# block.) Used in the diff program (bin/ldiff).
class Diff::LCS::Hunk
- OLD_DIFF_OP_ACTION = { "+" => "a", "-" => "d", "!" => "c" }.freeze # :nodoc:
- ED_DIFF_OP_ACTION = { "+" => "a", "-" => "d", "!" => "c" }.freeze # :nodoc:
+ OLD_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc:
+ ED_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc:
private_constant :OLD_DIFF_OP_ACTION, :ED_DIFF_OP_ACTION if respond_to?(:private_constant)