Skip to content

Commit 3456293

Browse files
committed
Lint
1 parent f01b01a commit 3456293

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/auxiliary/scanner/http/wp_ti_woocommerce_wishlist_sqli.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def get_share_key
6969
json_body = res.get_json_document
7070
wishlist_data = json_body['wishlists_data']['products']
7171

72-
if wishlist_data && !wishlist_data.empty?
73-
share_key = json_body['wishlist']['share_key']
74-
if share_key
75-
print_good("Share key found: #{share_key}")
76-
return share_key
77-
end
72+
next unless wishlist_data && !wishlist_data.empty?
73+
74+
share_key = json_body['wishlist']['share_key']
75+
if share_key
76+
print_good("Share key found: #{share_key}")
77+
return share_key
7878
end
7979
end
8080

0 commit comments

Comments
 (0)