Skip to content

Commit 904bd12

Browse files
author
jvazquez-r7
committed
Fix print over nil or empty string
1 parent ef30858 commit 904bd12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/post/windows/gather/enum_prefetch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ def run
156156
# Goes through the files in Prefetch directory, creates file paths for the
157157
# gather_pf_info function that enumerates all the pf info
158158

159-
getfile_prefetch_filenames = client.fs.file.search(full_path,file_type)
159+
getfile_prefetch_filenames = client.fs.file.search(full_path, file_type)
160160
if getfile_prefetch_filenames.empty? or getfile_prefetch_filenames.nil?
161161
print_error("Could not find/access any .pf files. Can't continue. (Might be temporary error..)")
162162
return nil
163163
else
164164
getfile_prefetch_filenames.each do |file|
165165
if file.empty? or file.nil?
166-
print_error("Could not open file: %s" % file)
166+
next
167167
else
168168
filename = File.join(file['path'], file['name'])
169169
gather_pf_info(name_offset, hash_offset, runcount_offset, filename, table)

0 commit comments

Comments
 (0)