Skip to content

Commit

Permalink
Fixed Rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkanoor committed Jul 26, 2017
1 parent 89eb2bb commit 23d3509
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def process_filter
exp_table = exp_build_table(@exp, true)
qs_tokens = create_tokens(exp_table, @exp)
values = get_args(qs_tokens.keys.length)
qs_tokens.keys.each_with_index { |token_at, index| qs_tokens[token_at][:value] = values[index] }
qs_tokens.keys.each_with_index { |token_at, index| qs_tokens[token_at][:value] = values[index] }
exp_replace_qs_tokens(@exp, qs_tokens)
end

Expand All @@ -65,8 +65,7 @@ def result_dialog_hash
end

def result_simple(obj, attr)
raise MiqAeException::MethodNotDefined,
"Undefined method #{attr} in class #{obj.class}" unless obj.respond_to?(attr.to_sym)
raise MiqAeException::MethodNotDefined, "Undefined method #{attr} in class #{obj.class}" unless obj.respond_to?(attr.to_sym)
obj.send(attr.to_sym)
end

Expand Down

0 comments on commit 23d3509

Please sign in to comment.