From 26e33bc42fad50da0517a7957dc05b725c64120d Mon Sep 17 00:00:00 2001 From: James O'Leary <65884233+jpohhhh@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:41:34 -0400 Subject: [PATCH] Lint --- ios/Classes/FonnxPlugin.swift | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ios/Classes/FonnxPlugin.swift b/ios/Classes/FonnxPlugin.swift index 29fc945..73f05a8 100644 --- a/ios/Classes/FonnxPlugin.swift +++ b/ios/Classes/FonnxPlugin.swift @@ -67,17 +67,17 @@ public class FonnxPlugin: NSObject, FlutterPlugin { return } - model.getEmbedding( - tokens: tokens, - completion: { (answer, error) in - if let error = error { - result( - FlutterError(code: "MiniLm", message: "Failed to get embedding", details: error) - ) - } else { - result(answer) - } - }) + model.getEmbedding( + tokens: tokens, + completion: { (answer, error) in + if let error = error { + result( + FlutterError(code: "MiniLm", message: "Failed to get embedding", details: error) + ) + } else { + result(answer) + } + }) } public func doSileroVad(_ call: FlutterMethodCall, result: @escaping FlutterResult) { @@ -177,16 +177,16 @@ public class FonnxPlugin: NSObject, FlutterPlugin { return } - model.getTranscription( - audioBytes: audioBytes, - completion: { (answer, error) in - if let error = error { - result( - FlutterError(code: "Whisper", message: "Failed to get transcription", details: error) - ) - } else { - result(answer) - } - }) + model.getTranscription( + audioBytes: audioBytes, + completion: { (answer, error) in + if let error = error { + result( + FlutterError(code: "Whisper", message: "Failed to get transcription", details: error) + ) + } else { + result(answer) + } + }) } }