Skip to content

Commit

Permalink
fix switch
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed Sep 5, 2024
1 parent f337968 commit 18254d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/lightning/lightning.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn toUnit(
switch (current_unit) {
.sat => switch (target_unit) {
.sat => return amount,
.msat => amount * MSAT_IN_SAT,
.msat => return amount * MSAT_IN_SAT,
else => {},
},
.msat => switch (target_unit) {
Expand All @@ -86,7 +86,6 @@ pub fn toUnit(
.eur => return amount,
else => {},
},
else => {},
}

return error.CannotConvertUnits;
Expand Down

0 comments on commit 18254d4

Please sign in to comment.