Fix brew style errors

This commit is contained in:
Carlo Cabrera 2025-08-13 18:07:17 +08:00 committed by Carlo Cabrera
parent a4ea97016a
commit d9c661a34e
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -29,8 +29,6 @@ pointer_to_buffer = Fiddle::Pointer.to_ptr(buffer)
# https://github.com/chromium/chromium/blob/86df41504a235f9369f6f53887da12a718a19db4/base/process/process_handle_mac.cc#L37-L44
# https://github.com/apple-oss-distributions/xnu/blob/e3723e1f17661b24996789d8afc084c0c3303b26/libsyscall/wrappers/libproc/libproc.c#L263-L283
return_value = libproc_proc_pidpath_function.call(pid, pointer_to_buffer, buffer_size)
if return_value.positive?
puts pointer_to_buffer.to_s.strip
else
raise "Call to `proc_pidpath` failed! `proc_pidpath` returned #{return_value}."
end
raise "Call to `proc_pidpath` failed! `proc_pidpath` returned #{return_value}." unless return_value.positive?
puts pointer_to_buffer.to_s.strip