From 76362d7114277a8ad2f766fdf1518aacde2ef37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 24 Apr 2016 19:07:52 +0100 Subject: [PATCH] index: simplify IsCompatibleABI --- index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.go b/index.go index 8b79494..06167b8 100644 --- a/index.go +++ b/index.go @@ -215,9 +215,9 @@ func (apk *Apk) IsCompatibleABI(ABIs []string) bool { if len(apk.ABIs) == 0 { return true // APK does not contain native code } - for i := range apk.ABIs { - for j := range ABIs { - if apk.ABIs[i] == ABIs[j] { + for _, apkABI := range apk.ABIs { + for _, abi := range ABIs { + if apkABI == abi { return true } }