Skip to content

Commit

Permalink
rubocop suggestion change
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Apr 29, 2020
1 parent a778704 commit 5be6f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wechat/cipher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def pack(content, app_id)

def unpack(msg)
msg = decode_padding(msg)
msg_len = msg[16, 4].reverse.unpack('V')[0]
msg_len = msg[16, 4].reverse.unpack1('V')
content = msg[20, msg_len]
app_id = msg[(20 + msg_len)..-1]

Expand Down

0 comments on commit 5be6f38

Please sign in to comment.