Skip to content

Commit

Permalink
Merge pull request #229 from paicha/master
Browse files Browse the repository at this point in the history
FIX: `request_content` could be nil
  • Loading branch information
Eric-Guo authored May 7, 2018
2 parents 49ef9be + a6085f5 commit a4e2a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wechat/responder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def gen_msg(encrypt, timestamp, nonce)
end

def request_encrypt_content
request_content['xml']['Encrypt']
request_content&.dig('xml', 'Encrypt')
end

def request_content
Expand Down

0 comments on commit a4e2a42

Please sign in to comment.