Skip to content

Commit

Permalink
simplify dartfix output
Browse files Browse the repository at this point in the history
Fix dart-lang/sdk#38239

Change-Id: I1857d04b35cf843e77b2fc5d987f6b490ba215a7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116249
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
  • Loading branch information
danrubel authored and commit-bot@chromium.org committed Sep 9, 2019
1 parent 41bf744 commit 129d4a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/dartfix/lib/src/driver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ class Driver {
Ansi get ansi => logger.ansi;

Future applyFixes() async {
showDescriptions('Recommended changes', result.suggestions);
showDescriptions('Recommended changes that cannot be automatically applied',
result.otherSuggestions);
showDetails(result.details);
if (result.suggestions.isEmpty) {
if (result.edits.isEmpty) {
logger.stdout('');
logger.stdout(result.otherSuggestions.isNotEmpty
? 'None of the recommended changes can be automatically applied.'
Expand Down

0 comments on commit 129d4a6

Please sign in to comment.