We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0375a99 commit ad95167Copy full SHA for ad95167
1 file changed
lib/fluent/plugin/in_systemd.rb
@@ -21,7 +21,7 @@
21
module Fluent
22
module Plugin
23
# Fluentd plugin for reading from the systemd journal
24
- class SystemdInput < Input
+ class SystemdInput < Input # rubocop:disable Metrics/ClassLength
25
Fluent::Plugin.register_input('systemd', self)
26
27
helpers :timer, :storage
@@ -63,7 +63,7 @@ def start
63
64
def shutdown
65
@running = false
66
- @journal.close if @journal
+ @journal&.close
67
@journal = nil
68
@pos_storage = nil
69
@mutator = nil
0 commit comments