Skip to content

Commit 3c7b061

Browse files
committed
Use single quotes
But I like double quotes. :(
1 parent 72e7691 commit 3c7b061

File tree

1 file changed

+3
-3
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+3
-3
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ def cmd_db_status(*args)
16871687
return if not db_check_driver
16881688

16891689
if framework.db.connection_established?
1690-
cdb = ""
1690+
cdb = ''
16911691
::ActiveRecord::Base.connection_pool.with_connection do |conn|
16921692
if conn.respond_to?(:current_database)
16931693
cdb = conn.current_database
@@ -1707,14 +1707,14 @@ def cmd_db_connect_help
17071707
def cmd_db_connect(*args)
17081708
return if not db_check_driver
17091709
if args[0] != '-h' && framework.db.connection_established?
1710-
cdb = ""
1710+
cdb = ''
17111711
::ActiveRecord::Base.connection_pool.with_connection do |conn|
17121712
if conn.respond_to?(:current_database)
17131713
cdb = conn.current_database
17141714
end
17151715
end
17161716
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')
17181718
return
17191719
end
17201720
if (args[0] == "-y")

0 commit comments

Comments
 (0)