Skip to content

Commit

Permalink
remove un-needed initalizers
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Aug 16, 2014
1 parent 408e967 commit bcc5559
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
6 changes: 0 additions & 6 deletions lib/puppet/provider/sensu_check/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
confine :feature => :json
include Puppet_X::Sensu::Totype

def initialize(*args)
super

@conf = nil
end

def conf
begin
@conf ||= JSON.parse(File.read(config_file))
Expand Down
6 changes: 0 additions & 6 deletions lib/puppet/provider/sensu_check_config/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
Puppet::Type.type(:sensu_check_config).provide(:json) do
confine :feature => :json

def initialize(*args)
super

@conf = nil
end

def conf
begin
@conf ||= JSON.parse(File.read(config_file))
Expand Down
7 changes: 1 addition & 6 deletions lib/puppet/provider/sensu_filter/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
confine :feature => :json
include Puppet_X::Sensu::Totype

def initialize(*args)
super
@conf = nil
end

def conf
begin
@conf ||= JSON.parse(File.read(config_file))
Expand All @@ -42,7 +37,7 @@ def create
end

def destroy
conf = nil
@conf = nil
end

def exists?
Expand Down

0 comments on commit bcc5559

Please sign in to comment.