Skip to content

Commit 8096508

Browse files
committed
Count booking attempts
1 parent 21eb851 commit 8096508

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

condeco-cli/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,12 @@ static void RunAutoBook(AutoBookOptions opts)
238238
{
239239
(bool Success, BookingResponse BookingResponse)? bookingResult = null;
240240
Exception? exception = null;
241-
var attempt = 1;
241+
var attempt = 0;
242242

243-
for (attempt = 1; attempt <= 5; attempt++)
243+
for (var i = 0; i < 5; i++)
244244
{
245+
attempt++;
246+
245247
try
246248
{
247249
bookingResult = condeco.BookRoom(room, date, booking.BookFor);

0 commit comments

Comments
 (0)