mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Fix linter warnings for Swift snippets
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
import Foundation
|
||||
import BreezSDK
|
||||
|
||||
func getServiceStatus(sdk: BlockingBreezServices) -> ServiceHealthCheckResponse? {
|
||||
func getServiceStatus(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: health-check-status
|
||||
let healthCheck = try? sdk.serviceHealthCheck()
|
||||
print("Current service status is: \(healthCheck?.status)")
|
||||
if let healthCheck = try? sdk.serviceHealthCheck() {
|
||||
print("Current service status is: \(healthCheck.status)")
|
||||
}
|
||||
// ANCHOR_END: health-check-status
|
||||
return healthCheck
|
||||
}
|
||||
|
||||
func reportPaymentFailure(sdk: BlockingBreezServices) {
|
||||
|
||||
Reference in New Issue
Block a user