Auto-fix Style/UnpackFirst offenses

This commit is contained in:
Issy Long 2019-10-13 10:13:42 +01:00
parent 7193229b42
commit b87782ef7d
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -21,11 +21,11 @@ module ELFShim
ARCHITECTURE_AARCH64 = 0xB7 ARCHITECTURE_AARCH64 = 0xB7
def read_uint8(offset) def read_uint8(offset)
read(1, offset).unpack("C").first read(1, offset).unpack1("C")
end end
def read_uint16(offset) def read_uint16(offset)
read(2, offset).unpack("v").first read(2, offset).unpack1("v")
end end
def elf? def elf?