fastlane/swift/ControlCommand.swift in fastlane-2.150.3 vs fastlane/swift/ControlCommand.swift in fastlane-2.151.0

- old
+ new

@@ -50,25 +50,25 @@ let message: String? let id: String = UUID().uuidString let shutdownCommandType: ShutdownCommandType var commandJson: String { - var jsonDictionary: [String: Any] = [ControlCommand.commandKey : self.shutdownCommandType.token] + var jsonDictionary: [String: Any] = [ControlCommand.commandKey: shutdownCommandType.token] if let message = message { jsonDictionary[ShutdownCommandType.userMessageKey] = message } - if case .cancel(let reason) = shutdownCommandType { + if case let .cancel(reason) = shutdownCommandType { jsonDictionary[ShutdownCommandType.CancelReason.reasonKey] = reason.reasonText } let jsonData = try! JSONSerialization.data(withJSONObject: jsonDictionary, options: []) let jsonString = String(data: jsonData, encoding: .utf8)! return jsonString } init(commandType: ShutdownCommandType, message: String? = nil) { - self.shutdownCommandType = commandType + shutdownCommandType = commandType self.message = message } } // Please don't remove the lines below