Skip to content

Commit

Permalink
Remove quotes from symbol representation of activated?
Browse files Browse the repository at this point in the history
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
  • Loading branch information
clintoncwolfe committed Jan 28, 2019
1 parent 9acd94a commit d2c4d98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/inspec/plugin/v2/activator.rb
Expand Up @@ -3,7 +3,7 @@ module Inspec::Plugin::V2
:plugin_name,
:plugin_type,
:activator_name,
:'activated?',
:activated?,
:exception,
:activation_proc,
:implementation_class,
Expand All @@ -14,8 +14,8 @@ def initialize(*)
end

def activated?(new_value = nil)
return self[:'activated?'] if new_value.nil?
self[:'activated?'] = new_value
return self[:activated?] if new_value.nil?
self[:activated?] = new_value
end

# Load a plugin, but if an error is encountered, store it and continue
Expand All @@ -24,7 +24,7 @@ def activate
# rubocop: disable Lint/RescueException
begin
impl_class = self[:activation_proc].call
self[:'activated?'] = true
self[:activated?] = true
self[:implementation_class] = impl_class
rescue Exception => ex
self[:exception] = ex
Expand Down

0 comments on commit d2c4d98

Please sign in to comment.