Skip to content

Commit

Permalink
capability: Follow capng_c argument style for CapNG#initialize
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hatake@clear-code.com>
  • Loading branch information
cosmo0920 committed Nov 10, 2020
1 parent e4a833a commit 60d22aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fluent/capability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
module Fluent
if defined?(CapNG)
class Capability
def initialize(target = :current_process, pid_or_path = nil)
@capng = CapNG.new(target, pid_or_path)
def initialize(target = :current_process, pid = nil)
@capng = CapNG.new(target, pid)
end

def usable?
Expand Down Expand Up @@ -56,7 +56,7 @@ def have_capabilities?(select_set)
end
else
class Capability
def initialize(target = :current_process, pid_or_path = nil)
def initialize(target = :current_process, pid = nil)
end

def usable?
Expand Down

0 comments on commit 60d22aa

Please sign in to comment.