Skip to content

Commit

Permalink
swift format
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Dec 13, 2023
1 parent 36ce1bd commit 11dfd69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion LDKNodeMonday/Extensions/ChannelDetails+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ extension ChannelDetails: Hashable {
hasher.combine(channelId)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ extension LightningNodeService {
return paymentHash
}

func receiveVariableAmountPayment(description: String, expirySecs: UInt32) throws -> Bolt11Invoice {
func receiveVariableAmountPayment(description: String, expirySecs: UInt32) throws
-> Bolt11Invoice
{
let invoice = try ldkNode.receiveVariableAmountPayment(
description: description,
expirySecs: expirySecs
Expand Down
6 changes: 3 additions & 3 deletions LDKNodeMonday/Utilities/MondayError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ func handleNodeError(_ error: NodeError) -> MondayError {
case .ChannelConfigUpdateFailed(let message):
return .init(title: "ChannelConfigUpdateFailed", detail: message)

case .ProbeSendingFailed(message: let message):
case .ProbeSendingFailed(let message):
return .init(title: "ProbeSendingFailed", detail: message)

case .FeerateEstimationUpdateFailed(message: let message):
case .FeerateEstimationUpdateFailed(let message):
return .init(title: "FeerateEstimationUpdateFailed", detail: message)

case .InvalidSocketAddress(message: let message):
case .InvalidSocketAddress(let message):
return .init(title: "InvalidSocketAddress", detail: message)

}
Expand Down

0 comments on commit 11dfd69

Please sign in to comment.