Skip to content

Commit

Permalink
Fix for post submit on cirrus (#28963)
Browse files Browse the repository at this point in the history
* Fix for post submit on cirrus
  • Loading branch information
dnfield committed Mar 6, 2019
1 parent 20e0f13 commit e5b1ed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/bots/test.dart
Expand Up @@ -422,7 +422,9 @@ String _getCiProviderName() {
int _getPrNumber() {
switch(_getCiProvider()) {
case CiProviders.cirrus:
return int.tryParse(Platform.environment['CIRRUS_PR']);
return Platform.environment['CIRRUS_PR'] == null
? -1
: int.tryParse(Platform.environment['CIRRUS_PR']);
case CiProviders.luci:
return -1; // LUCI doesn't know about this.
}
Expand Down

0 comments on commit e5b1ed7

Please sign in to comment.