Skip to content

Commit

Permalink
Merge pull request #290 from cleandart/fix-ci-format-step
Browse files Browse the repository at this point in the history
Format on Dart 2.10.4, only check formatting on stable runs
  • Loading branch information
greglittlefield-wf authored Nov 25, 2020
2 parents 1cebe7f + 5dafc5e commit d18ce92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: dart

dart:
# We need 2.9.2 to verify the Chrome MemoryInfo workaround: https://github.com/cleandart/react-dart/pull/280
# TODO remove the workaround as well as this config once SDK lower bound is >=2.9.3
- 2.9.2
- stable
- dev
Expand All @@ -14,7 +16,7 @@ cache:
before_script:
- dartanalyzer .
- |
if [ "$TRAVIS_DART_VERSION" != "dev" ]; then
if [ "$TRAVIS_DART_VERSION" == "stable" ]; then
dartfmt --line-length=120 --dry-run --set-exit-if-changed .
fi
- pub run dependency_validator -i build_runner,build_test,build_web_compilers
Expand Down
6 changes: 5 additions & 1 deletion test/lifecycle_test/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ mixin LifecycleTestHelper on Component {
'context': context,
});

var lifecycleCallback = props == null ? staticProps == null ? null : staticProps[memberName] : props[memberName];
var lifecycleCallback = props == null
? staticProps == null
? null
: staticProps[memberName]
: props[memberName];
if (lifecycleCallback != null) {
return Function.apply(
lifecycleCallback,
Expand Down

0 comments on commit d18ce92

Please sign in to comment.