summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/hunk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diff/lcs/hunk.rb')
-rw-r--r--lib/diff/lcs/hunk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff/lcs/hunk.rb b/lib/diff/lcs/hunk.rb
index 9ff3638..9f596f3 100644
--- a/lib/diff/lcs/hunk.rb
+++ b/lib/diff/lcs/hunk.rb
@@ -67,9 +67,9 @@ class Diff::LCS::Hunk
# Change the "start" and "end" fields to note that context should be added
# to this hunk.
- attr_accessor :flag_context # rubocop:disable Layout/EmptyLinesAroundAttributeAccessor
+ attr_accessor :flag_context
undef :flag_context=
- def flag_context=(context) # :nodoc: # rubocop:disable Lint/DuplicateMethods
+ def flag_context=(context) # :nodoc: # standard:disable Lint/DuplicateMethods
return if context.nil? || context.zero?
add_start = context > @start_old ? @start_old : context