Skip to content

Commit

Permalink
refactor(GiniCaptureSDK): Fix indentation
Browse files Browse the repository at this point in the history
PP-392
  • Loading branch information
ValentinaIancu-Gini committed Apr 15, 2024
1 parent b7b67c1 commit 8f4168e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ extension GiniScreenAPICoordinator: AnalysisDelegate {
} else {
self?.screenAPINavigationController.dismiss(animated: animated)
}
}, cancelPressed: { [weak self] in
},
cancelPressed: { [weak self] in
self?.closeScreenApi()
})
} else {
Expand All @@ -118,25 +119,27 @@ extension GiniScreenAPICoordinator: AnalysisDelegate {
} else {
self?.screenAPINavigationController.dismiss(animated: animated)
}
}, cancelPressed: { [weak self] in
},
cancelPressed: { [weak self] in
self?.closeScreenApi()
})
}
default:
viewModel = BottomButtonsViewModel(
manuallyPressed: { [weak self] in
self?.screenAPINavigationController.dismiss(animated: true)
}, cancelPressed: { [weak self] in
},
cancelPressed: { [weak self] in
self?.closeScreenApi()
})
}

self.trackingDelegate?.onAnalysisScreenEvent(event: Event(type: .error))
let viewController = ErrorScreenViewController(
giniConfiguration: giniConfiguration,
type: errorType,
documentType: pages.type ?? .pdf,
viewModel: viewModel)
let viewController = ErrorScreenViewController(giniConfiguration: giniConfiguration,
type: errorType,
documentType: pages.type ?? .pdf,
viewModel: viewModel,
errorAnalytics: ErrorAnalytics(type: ""))

screenAPINavigationController.pushViewController(viewController, animated: animated)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,8 @@ extension GiniScreenAPICoordinator: UploadDelegate {
guard let self = self else { return }
self.update(document, withError: error, isUploaded: false)

let errorLog = ErrorLog(
description: String(describing: error),
error: error)
let errorLog = ErrorLog(description: String(describing: error),
error: error)
self.giniConfiguration.errorLogger.handleErrorLog(error: errorLog)
guard let giniError = error as? GiniError, giniError != .requestCancelled else { return }
self.displayError(errorType: ErrorType(error: giniError), animated: true)
Expand Down

0 comments on commit 8f4168e

Please sign in to comment.