From b87782ef7d4c1efb51d5e1508240495a5cad33d3 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 13 Oct 2019 10:13:42 +0100 Subject: [PATCH] Auto-fix Style/UnpackFirst offenses --- Library/Homebrew/os/linux/elf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/os/linux/elf.rb b/Library/Homebrew/os/linux/elf.rb index 4d85ae9858..244a22e114 100644 --- a/Library/Homebrew/os/linux/elf.rb +++ b/Library/Homebrew/os/linux/elf.rb @@ -21,11 +21,11 @@ module ELFShim ARCHITECTURE_AARCH64 = 0xB7 def read_uint8(offset) - read(1, offset).unpack("C").first + read(1, offset).unpack1("C") end def read_uint16(offset) - read(2, offset).unpack("v").first + read(2, offset).unpack1("v") end def elf?