Skip to content

Commit b0858e9

Browse files
author
HD Moore
committed
Style tweak re: TheLightCosine's feedback
1 parent b3f7541 commit b0858e9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

lib/msf/core/exploit.rb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,22 +1193,18 @@ def handler_enabled?
11931193
# value can be one of the Handler::constants.
11941194
#
11951195
def handler(*args)
1196-
return unless (
1197-
payload_instance &&
1198-
handler_enabled?
1199-
)
1196+
return unless payload_instance
1197+
return unless handler_enabled?
12001198
payload_instance.handler(*args)
12011199
end
12021200

12031201
#
12041202
# Break out of the session wait loop (WfsDelay)
12051203
#
12061204
def interrupt_handler
1207-
return unless (
1208-
payload_instance &&
1209-
handler_enabled? &&
1210-
payload_instance.respond_to?(:interrupt_wait_for_session)
1211-
)
1205+
return unless payload_instance
1206+
return unless handler_enabled?
1207+
return unless payload_instance.respond_to?(:interrupt_wait_for_session)
12121208
payload_instance.interrupt_wait_for_session()
12131209
end
12141210

0 commit comments

Comments
 (0)