Skip to content

Commit

Permalink
Fix backwards branches in example script.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Oct 14, 2024
1 parent ed06fc1 commit b0dd928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ void _runFormatter(String source, int pageWidth,
try {
var formatter = DartFormatter(
languageVersion: tall
? DartFormatter.latestShortStyleLanguageVersion
: DartFormatter.latestLanguageVersion,
? DartFormatter.latestLanguageVersion
: DartFormatter.latestShortStyleLanguageVersion,
pageWidth: pageWidth);

String result;
Expand Down

0 comments on commit b0dd928

Please sign in to comment.