From aedd8a53b809815aae61aae6e63aea7e9362f526 Mon Sep 17 00:00:00 2001 From: Ian Lavery Date: Fri, 6 Oct 2023 17:17:16 -0700 Subject: [PATCH] style --- binding/ios/Porcupine.swift | 50 ++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/binding/ios/Porcupine.swift b/binding/ios/Porcupine.swift index 0d7a90465..5b0560a89 100644 --- a/binding/ios/Porcupine.swift +++ b/binding/ios/Porcupine.swift @@ -248,31 +248,31 @@ public class Porcupine { _ message: String, _ messageStack: [String] = []) -> PorcupineError { switch status { - case PV_STATUS_OUT_OF_MEMORY: - return PorcupineMemoryError(message, messageStack) - case PV_STATUS_IO_ERROR: - return PorcupineIOError(message, messageStack) - case PV_STATUS_INVALID_ARGUMENT: - return PorcupineInvalidArgumentError(message, messageStack) - case PV_STATUS_STOP_ITERATION: - return PorcupineStopIterationError(message, messageStack) - case PV_STATUS_KEY_ERROR: - return PorcupineKeyError(message, messageStack) - case PV_STATUS_INVALID_STATE: - return PorcupineInvalidStateError(message, messageStack) - case PV_STATUS_RUNTIME_ERROR: - return PorcupineRuntimeError(message, messageStack) - case PV_STATUS_ACTIVATION_ERROR: - return PorcupineActivationError(message, messageStack) - case PV_STATUS_ACTIVATION_LIMIT_REACHED: - return PorcupineActivationLimitError(message, messageStack) - case PV_STATUS_ACTIVATION_THROTTLED: - return PorcupineActivationThrottledError(message, messageStack) - case PV_STATUS_ACTIVATION_REFUSED: - return PorcupineActivationRefusedError(message, messageStack) - default: - let pvStatusString = String(cString: pv_status_to_string(status)) - return PorcupineError("\(pvStatusString): \(message)", messageStack) + case PV_STATUS_OUT_OF_MEMORY: + return PorcupineMemoryError(message, messageStack) + case PV_STATUS_IO_ERROR: + return PorcupineIOError(message, messageStack) + case PV_STATUS_INVALID_ARGUMENT: + return PorcupineInvalidArgumentError(message, messageStack) + case PV_STATUS_STOP_ITERATION: + return PorcupineStopIterationError(message, messageStack) + case PV_STATUS_KEY_ERROR: + return PorcupineKeyError(message, messageStack) + case PV_STATUS_INVALID_STATE: + return PorcupineInvalidStateError(message, messageStack) + case PV_STATUS_RUNTIME_ERROR: + return PorcupineRuntimeError(message, messageStack) + case PV_STATUS_ACTIVATION_ERROR: + return PorcupineActivationError(message, messageStack) + case PV_STATUS_ACTIVATION_LIMIT_REACHED: + return PorcupineActivationLimitError(message, messageStack) + case PV_STATUS_ACTIVATION_THROTTLED: + return PorcupineActivationThrottledError(message, messageStack) + case PV_STATUS_ACTIVATION_REFUSED: + return PorcupineActivationRefusedError(message, messageStack) + default: + let pvStatusString = String(cString: pv_status_to_string(status)) + return PorcupineError("\(pvStatusString): \(message)", messageStack) } }