Fix rubocop offense.

This commit is contained in:
Parker Moore 2016-05-19 13:16:32 -07:00
parent 473d85b580
commit 3885057e9e
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ class Jekyll::Commands::NewTheme < Jekyll::Command
end
def process(args)
raise Jekyll::Errors::InvalidThemeName, "You must specify a theme name." if args.empty?
if !args || args.empty?
raise Jekyll::Errors::InvalidThemeName, "You must specify a theme name."
end
new_theme_name = args.join("_")
theme = Jekyll::ThemeBuilder.new(new_theme_name)