Skip to content

Commit 68a5d30

Browse files
author
Brent Cook
committed
minor style issues
1 parent b370dd0 commit 68a5d30

File tree

1 file changed

+2
-4
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi

1 file changed

+2
-4
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi/clipboard.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ def download_file( dest_folder, source )
377377
# Basename ends up with a single name/folder. This is the only point where it
378378
# may be possible to do a dir trav up one folder. We need to check to make sure
379379
# that the basename doesn't result in a traversal
380-
if base == '..'
381-
return false
382-
end
380+
return false if base == '..'
383381

384382
dest = File.join( dest_folder, base )
385383

@@ -420,7 +418,7 @@ def parse_dump(dump, get_images, get_files, download_path)
420418
print_line("Remote Path : #{f[:name]}")
421419
print_line("File size : #{f[:size]} bytes")
422420
if get_files
423-
unless download_file( loot_dir, f[:name] )
421+
unless download_file(loot_dir, f[:name])
424422
print_error("Download of #{f:name]} failed.")
425423
end
426424
end

0 commit comments

Comments
 (0)