Skip to content

Commit 0e77b9b

Browse files
committed
Style/IfInsideElse
1 parent ac81a7c commit 0e77b9b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ Style/GlobalVars:
7272
Exclude:
7373
- 'ext/mysql2/extconf.rb'
7474

75-
# Offense count: 1
76-
Style/IfInsideElse:
77-
Exclude:
78-
- 'tasks/compile.rake'
79-
8075
# Offense count: 4
8176
# Cop supports --auto-correct.
8277
Style/MutableConstant:

tasks/compile.rake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ end
8585
if RUBY_PLATFORM =~ /mingw|mswin/
8686
Rake::Task['compile'].prerequisites.unshift 'vendor:mysql' unless defined?(RubyInstaller)
8787
Rake::Task['compile'].prerequisites.unshift 'devkit'
88-
else
89-
if Rake::Task.tasks.map(&:name).include? 'cross'
90-
Rake::Task['cross'].prerequisites.unshift 'vendor:mysql:cross'
91-
end
88+
elsif Rake::Task.tasks.map(&:name).include? 'cross'
89+
Rake::Task['cross'].prerequisites.unshift 'vendor:mysql:cross'
9290
end
9391

9492
desc "Build binary gems for Windows with rake-compiler-dock"

0 commit comments

Comments
 (0)