Skip to content

Commit abaec32

Browse files
committed
What Luke said.
"You cannot, in general, place a variable declaration in a begin scope and use it in the ensure scope unless you use nil?. It is better to swap line 35 and line 34."
1 parent 86d6bce commit abaec32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/analyze/jtr_aix.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ def initialize
3131
end
3232

3333
def run
34+
wordlist = Rex::Quickfile.new("jtrtmp")
3435
begin
35-
wordlist = Rex::Quickfile.new("jtrtmp")
36-
3736
wordlist.write( build_seed().join("\n") + "\n" )
3837
ensure
3938
wordlist.close

0 commit comments

Comments
 (0)