Land #18979, Remove empty () when no DB selected for sql session prompts

This commit is contained in:
Zach Goldman 2024-03-20 12:52:02 -04:00 committed by GitHub
commit 1216bf1904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ module Rex
#
# @return [String]
def sql_prompt
"#{session.type} @ #{client.peerinfo} (#{current_database})"
"#{session.type} @ #{client.peerinfo}#{current_database.blank? ? '' : " (#{current_database})"}"
end
#