From 871d7516405572b658c637891290f9bc43a376b7 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 6 Oct 2022 20:52:11 +0800 Subject: [PATCH] var to let --- Mac/MainWindow/About/AboutWindowController.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Mac/MainWindow/About/AboutWindowController.swift b/Mac/MainWindow/About/AboutWindowController.swift index 233e1743a..9fbe83ac2 100644 --- a/Mac/MainWindow/About/AboutWindowController.swift +++ b/Mac/MainWindow/About/AboutWindowController.swift @@ -86,7 +86,7 @@ class AboutHostingController: NSHostingController, NSToolbarDelegate { switch itemIdentifier { case .aboutGroup: - var toolbarItem = NSToolbarItem(itemIdentifier: .aboutGroup) + let toolbarItem = NSToolbarItem(itemIdentifier: .aboutGroup) toolbarItem.view = segmentedControl toolbarItem.autovalidates = true return toolbarItem @@ -118,7 +118,6 @@ class AboutHostingController: NSHostingController, NSToolbarDelegate { // MARK: - Target/Action @objc func segmentedControlSelectionChanged(_ sender: NSSegmentedControl) { - print(#function) if sender.selectedSegment == 0 { rootView = AnyView(AboutNetNewsWireView()) } else {