Fix linter warnings for Swift snippets

This commit is contained in:
Erdem Yerebasmaz
2024-01-25 17:09:30 +03:00
parent 0c40b26e92
commit f881f0aebc
5 changed files with 15 additions and 6 deletions

View File

@@ -38,12 +38,13 @@ func gettingStarted() throws -> BlockingBreezServices? {
return sdk
}
// ANCHOR_END: init-sdk
func gettingStartedNodeInfo(sdk: BlockingBreezServices) {
// ANCHOR: fetch-balance
if let nodeInfo = try? sdk.nodeInfo() {
let lnBalance = nodeInfo.channelsBalanceMsat
let onchainBalance = nodeInfo.onchainBalanceMsat
print(lnBalance);
print(onchainBalance);
}
// ANCHOR_END: fetch-balance
}