Skip to content

Commit 41a8592

Browse files
committed
fix latest pedantic lint
1 parent da1d523 commit 41a8592

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/common/github.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,9 @@ class GitHub {
342342
if (statusCode != null && statusCode != response.statusCode) {
343343
fail != null ? fail(response) : null;
344344
handleStatusCode(response);
345-
} else
345+
} else {
346346
return response;
347+
}
347348
}
348349

349350
///
@@ -369,8 +370,9 @@ class GitHub {
369370
throw InvalidJSON(this, message);
370371
} else if (message == "Body should be a JSON Hash") {
371372
throw InvalidJSON(this, message);
372-
} else
373+
} else {
373374
throw BadRequest(this);
375+
}
374376
break;
375377
case 422:
376378
var buff = StringBuffer();

0 commit comments

Comments
 (0)