Skip to content

Commit 59cff2b

Browse files
committed
🧹
1 parent 8f9df85 commit 59cff2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/redhound/receiver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def run
2323
loop do
2424
msg, = @source.next_packet
2525
Analyzer.analyze(msg:)
26-
@writer.write(msg) if @writer
26+
@writer&.write(msg)
2727
rescue Interrupt
28-
@writer.stop if @writer
28+
@writer&.stop
2929
break
3030
end
3131
end

0 commit comments

Comments
 (0)