Remove nil check because blank? handles it

The check used to be session_name.strip.empty?, but I forgot to remove
the nil case when I converted to blank?.
bug/bundler_fix
William Vu 2017-08-25 14:11:59 -05:00
parent 5b7785438f
commit b797e96a19
1 changed files with 1 additions and 1 deletions

View File

@ -1477,7 +1477,7 @@ class Core
print(Serializer::ReadableText.dump_sessions(framework, :show_extended => show_extended, :verbose => verbose, :search_term => search_term)) print(Serializer::ReadableText.dump_sessions(framework, :show_extended => show_extended, :verbose => verbose, :search_term => search_term))
print_line print_line
when 'name' when 'name'
if session_name.nil? || session_name.blank? if session_name.blank?
print_error('Please specify a valid session name') print_error('Please specify a valid session name')
return false return false
end end