From 872f0e3faf4d2379ff1609cc476106ef2cc37c5a Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sat, 22 Aug 2020 20:43:21 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Left=20justify=20app=20ID=20colu?= =?UTF-8?q?mn=20to=20restore=20brew=20bundle=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MasKit/Formatters/AppListFormatter.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MasKit/Formatters/AppListFormatter.swift b/MasKit/Formatters/AppListFormatter.swift index f05f5d1..f3bed4e 100644 --- a/MasKit/Formatters/AppListFormatter.swift +++ b/MasKit/Formatters/AppListFormatter.swift @@ -24,11 +24,11 @@ struct AppListFormatter { var output: String = "" for product in products { - let appId = product.itemIdentifier.intValue + let appId = product.itemIdentifier let appName = product.appNameOrBbundleIdentifier.padding(toLength: maxLength, withPad: " ", startingAt: 0) let version = product.bundleVersion - output += String(format: "%12d %@ (%@)\n", appId, appName, version) + output += "\(appId) \(appName) (\(version))\n" } return output.trimmingCharacters(in: .newlines)