Skip to content

Commit

Permalink
Rubocop autocorrected: Style/Semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 5, 2015
1 parent af947b5 commit 3d6964f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .rubocop.yml
Expand Up @@ -151,12 +151,6 @@ Style/Next:
Style/OpMethod:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false

# Offense count: 4
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/yast/path.rb
Expand Up @@ -47,8 +47,8 @@ def <=>(other)
0.upto(size-1) do |i|
return 1 unless other.send(:components)[i]
# we strip enclosing quotes for complex expression
our_component = components[i].sub(/\A"(.*)"\Z/,"\\1");
other_component = other.send(:components)[i].sub(/\A"(.*)"\Z/,"\\1");
our_component = components[i].sub(/\A"(.*)"\Z/,"\\1")
other_component = other.send(:components)[i].sub(/\A"(.*)"\Z/,"\\1")
res = our_component <=> other_component
return res if res != 0
end
Expand Down
2 changes: 1 addition & 1 deletion tests/ycp/URI.rb
Expand Up @@ -7,7 +7,7 @@ def self.scheme(instance)
end

# garbage_collect
class << self;
class << self
include GC
end
end

0 comments on commit 3d6964f

Please sign in to comment.