Skip to content

Commit ad95167

Browse files
committed
Fix rubocop
1 parent 0375a99 commit ad95167

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/fluent/plugin/in_systemd.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module Fluent
2222
module Plugin
2323
# Fluentd plugin for reading from the systemd journal
24-
class SystemdInput < Input
24+
class SystemdInput < Input # rubocop:disable Metrics/ClassLength
2525
Fluent::Plugin.register_input('systemd', self)
2626

2727
helpers :timer, :storage
@@ -63,7 +63,7 @@ def start
6363

6464
def shutdown
6565
@running = false
66-
@journal.close if @journal
66+
@journal&.close
6767
@journal = nil
6868
@pos_storage = nil
6969
@mutator = nil

0 commit comments

Comments
 (0)