Skip to content

Commit

Permalink
Fix Style/GuardClause cop violation
Browse files Browse the repository at this point in the history
  • Loading branch information
fteem committed Apr 6, 2017
1 parent bc139e7 commit f5dc2d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/generators/douglas/table_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ def copy_douglas_migration
end

def migration_version
if rails5?
"[#{::Rails::VERSION::MAJOR}.#{::Rails::VERSION::MINOR}]"
end
return unless rails5?
"[#{::Rails::VERSION::MAJOR}.#{::Rails::VERSION::MINOR}]"
end

def rails5?
Expand Down

0 comments on commit f5dc2d6

Please sign in to comment.