From 5d3093cef35a332496ca0fa3773eb3432bc90db4 Mon Sep 17 00:00:00 2001 From: JNdhlovu Date: Wed, 21 Aug 2024 14:42:40 +0200 Subject: [PATCH] feat: lint issues --- Example/SmileID/App/AppDelegate.swift | 8 ++++---- Tests/Networking/PollingTests.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Example/SmileID/App/AppDelegate.swift b/Example/SmileID/App/AppDelegate.swift index 04f2b308b..57c9ea962 100644 --- a/Example/SmileID/App/AppDelegate.swift +++ b/Example/SmileID/App/AppDelegate.swift @@ -1,9 +1,9 @@ +import ArkanaKeys import netfox import Sentry import SmileID import SwiftUI import UIKit -import ArkanaKeys @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { @@ -14,9 +14,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { UINavigationBar.appearance().titleTextAttributes = [ - NSAttributedString.Key.foregroundColor: UIColor.black + NSAttributedString.Key.foregroundColor: UIColor.black, ] - if(enableSentry()){ + if enableSentry() { SentrySDK.start { options in options.dsn = ArkanaKeys.Global().sENTRY_DSN options.debug = true @@ -32,7 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { window?.makeKeyAndVisible() return true } - + func enableSentry() -> Bool { guard let enableSentry = Bundle.main.object(forInfoDictionaryKey: "EnableSentry") as? String else { return false diff --git a/Tests/Networking/PollingTests.swift b/Tests/Networking/PollingTests.swift index 0d6d0d51c..e3b734743 100644 --- a/Tests/Networking/PollingTests.swift +++ b/Tests/Networking/PollingTests.swift @@ -59,7 +59,7 @@ final class PollingTests: XCTestCase { MockHelper.shouldFail = true MockHelper.jobComplete = false - + do { let stream = try await pollFunction(request, interval, numAttempts) for try await _ in stream {