You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename isAvailableForEnvironment to isForEnvironment (#143176) (#144858)
This is part 4 of a broken down version of the #140101 refactor.
This PR renames isAvailableForEnvironment to isForEnvironment and replaces a regular expression with a simple function. (The latter will change the behaviour for people with branch names like `mainly_refactors` or `chess_master_experiment` or whatever, but I'm pretty sure the old behaviour was not intended.)
----
This is a reland of #143176 which was speculatively reverted in #144855 but turned out not to be the cause of the tree redness.
if (FlutterPostSubmitFileComparator.isAvailableForEnvironment(platform)) {
42
+
if (FlutterPostSubmitFileComparator.isForEnvironment(platform)) {
43
43
return_Comparator.post;
44
44
}
45
-
if (FlutterPreSubmitFileComparator.isAvailableForEnvironment(platform)) {
45
+
if (FlutterPreSubmitFileComparator.isForEnvironment(platform)) {
46
46
return_Comparator.pre;
47
47
}
48
-
if (FlutterSkippingFileComparator.isAvailableForEnvironment(platform)) {
48
+
if (FlutterSkippingFileComparator.isForEnvironment(platform)) {
49
49
return_Comparator.skip;
50
50
}
51
51
return_Comparator.local;
@@ -165,4 +165,11 @@ void main() {
165
165
expect(_testRecommendations(os:'linux', hasCirrus:true, hasGold:true, hasFlutterRoot:true), _Comparator.local); // TODO(ianh): this should be skip
166
166
expect(_testRecommendations(os:'linux', hasCirrus:true, hasGold:true, hasFlutterRoot:true, hasTryJob:true), _Comparator.local); // TODO(ianh): this should be skip
0 commit comments