Skip to content

Commit bd95ca0

Browse files
committed
fix: wrap long line to satisfy 80 char limit
Signed-off-by: Olexandr88 <radole1203@gmail.com>
1 parent 06f997b commit bd95ca0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/loop/instantout.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ func instantOut(ctx context.Context, cmd *cli.Command) error {
8989
fmt.Printf("Available reservations: \n\n")
9090
for _, res := range confirmedReservations {
9191
idx++
92-
shortID := res.ReservationId
93-
if len(shortID) != reservation.IdLength {
94-
return fmt.Errorf("invalid reservation id length: got %d, expected %d", len(shortID), reservation.IdLength)
92+
if len(res.ReservationId) != reservation.IdLength {
93+
return fmt.Errorf("invalid reservation id length: "+
94+
"got %d, expected %d", len(res.ReservationId),
95+
reservation.IdLength)
9596
}
96-
shortID = shortID[:3]
97-
97+
9898
fmt.Printf("Reservation %v: shortid %x, amt %v, expiry "+
99-
"height %v \n", idx, shortID, res.Amount, res.Expiry)
99+
"height %v \n", idx, res.ReservationId[:3], res.Amount, res.Expiry)
100100

101101
totalAmt += int64(res.Amount)
102102
}

0 commit comments

Comments
 (0)