fastlane/swift/Runner.swift in fastlane_hotfix-2.165.1 vs fastlane/swift/Runner.swift in fastlane_hotfix-2.187.0

- old
+ new

@@ -1,7 +1,7 @@ // Runner.swift -// Copyright (c) 2020 FastlaneTools +// Copyright (c) 2021 FastlaneTools // // ** NOTE ** // This file is provided by fastlane and WILL be overwritten in future updates // If you want to add extra functionality to this project, create a new file in a @@ -35,11 +35,11 @@ dispatchGroup.enter() currentlyExecutingCommand = command socketClient.send(rubyCommand: command) let secondsToWait = DispatchTimeInterval.seconds(SocketClient.defaultCommandTimeoutSeconds) - // swiftlint:disable next + // swiftformat:disable:next redundantSelf let timeoutResult = Self.waitWithPolling(self.executeNext[command.id], toEventually: { $0 == true }, timeout: SocketClient.defaultCommandTimeoutSeconds) executeNext.removeValue(forKey: command.id) let failureMessage = "command didn't execute in: \(SocketClient.defaultCommandTimeoutSeconds) seconds" let success = testDispatchTimeoutResult(timeoutResult, failureMessage: failureMessage, timeToWait: secondsToWait) guard success else { @@ -138,10 +138,10 @@ socketClient.connectAndOpenStreams() dispatchGroup.leave() } - fileprivate func testDispatchTimeoutResult(_ timeoutResult: DispatchTimeoutResult, failureMessage: String, timeToWait _: DispatchTimeInterval) -> Bool { + private func testDispatchTimeoutResult(_ timeoutResult: DispatchTimeoutResult, failureMessage: String, timeToWait _: DispatchTimeInterval) -> Bool { switch timeoutResult { case .success: return true case .timedOut: log(message: "timeout: \(failureMessage)")