Skip to content

Commit 214c137

Browse files
committed
Don't use parenthesis around pgets
1 parent 0ad7d10 commit 214c137

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rex/ui/text/input/readline.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def gets()
8888
# down other background threads. This is important when there are many active
8989
# background jobs, such as when the user is running Karmetasploit
9090
#
91-
def pgets()
91+
def pgets
9292

9393
line = nil
9494
orig = Thread.current.priority

lib/rex/ui/text/shell.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Shell
2222
module InputShell
2323
attr_accessor :prompt, :output
2424

25-
def pgets()
25+
def pgets
2626

2727
output.print(prompt)
2828
output.flush
@@ -370,7 +370,7 @@ def get_input_line
370370
end
371371

372372
output.input = input
373-
line << input.pgets()
373+
line << input.pgets
374374
output.input = nil
375375
log_output(input.prompt)
376376
end

0 commit comments

Comments
 (0)