Permalink
Browse files

Use not instead of not()

  • Loading branch information...
mshafrir committed Dec 28, 2011
1 parent 6c26346 commit 1d64522ddc0c22c89f8cbad0b3bddfc8580321d0
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/nutshell-crm.rb
View
@@ -384,7 +384,9 @@ def build_payload(params = nil, override_method = nil)
method = override_method
end
- params[:stubResponses] = @stub_responses if not(params.nil?) && params.has_key?(:stubResponses) && not(@stub_responses.nil?)
+ if (not params.nil?) && params.has_key?(:stubResponses) && (not @stub_responses.nil?)
+ params[:stubResponses] = @stub_responses
+ end
# Create the payload
payload = {:method => camelcase(method), :id => generate_request_id}

0 comments on commit 1d64522

Please sign in to comment.