Unverified Commit e5b1ed7a authored by Dan Field's avatar Dan Field Committed by GitHub

Fix for post submit on cirrus (#28963)

* Fix for post submit on cirrus
parent 20e0f13c
......@@ -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.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment