Skip to content

Commit 99965c1

Browse files
committed
remove duplicate check
1 parent bb3a11d commit 99965c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rex/ui/text/shell.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def run(&block)
200200
# If a block was passed in, pass the line to it. If it returns true,
201201
# break out of the shell loop.
202202
elsif block
203-
break if line == nil || block.call(line)
204-
203+
break if block.call(line)
205204

206205
# Otherwise, call what should be an overriden instance method to
207206
# process the line.

0 commit comments

Comments
 (0)