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 f910c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/capability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
module Fluent
if defined?(CapNG)
class Capability
def initialize(target = :current_process, pid_or_path = nil)
def initialize(target = :current_process, pid = nil)
@capng = CapNG.new(target, pid_or_path)
end

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 f910c64

Please sign in to comment.