File tree 1 file changed +3
-3
lines changed
lib/msf/ui/console/command_dispatcher
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,7 @@ def cmd_db_status(*args)
1687
1687
return if not db_check_driver
1688
1688
1689
1689
if framework . db . connection_established?
1690
- cdb = ""
1690
+ cdb = ''
1691
1691
::ActiveRecord ::Base . connection_pool . with_connection do |conn |
1692
1692
if conn . respond_to? ( :current_database )
1693
1693
cdb = conn . current_database
@@ -1707,14 +1707,14 @@ def cmd_db_connect_help
1707
1707
def cmd_db_connect ( *args )
1708
1708
return if not db_check_driver
1709
1709
if args [ 0 ] != '-h' && framework . db . connection_established?
1710
- cdb = ""
1710
+ cdb = ''
1711
1711
::ActiveRecord ::Base . connection_pool . with_connection do |conn |
1712
1712
if conn . respond_to? ( :current_database )
1713
1713
cdb = conn . current_database
1714
1714
end
1715
1715
end
1716
1716
print_error ( "#{ framework . db . driver } already connected to #{ cdb } " )
1717
- print_error ( " Run db_disconnect first if you wish to connect to a different database" )
1717
+ print_error ( ' Run db_disconnect first if you wish to connect to a different database' )
1718
1718
return
1719
1719
end
1720
1720
if ( args [ 0 ] == "-y" )
You can’t perform that action at this time.
0 commit comments