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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user