Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
eggnstone committed Jul 19, 2024
1 parent 477b739 commit 529cc7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/Formatters/FormalParameterListFormatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class FormalParameterListFormatter extends IFormatter
{
final bool shouldWriteLeftDelimiter =
node.leftDelimiter != null
&& (parameter.isNamed || parameter.isOptional)
&& !wroteLeftDelimiter;
&& (parameter.isNamed || parameter.isOptional)
&& !wroteLeftDelimiter;

if (lastNode != null)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/src/Tools/FormatTools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class FormatTools
throw DartFormatException.error('Internal error: Missing ${Constants.REMOVE_END} in result.');

result = result.substring(0, start)
+ result.substring(start + Constants.REMOVE_START.length, end)
+ result.substring(end + Constants.REMOVE_END.length);
+ result.substring(start + Constants.REMOVE_START.length, end)
+ result.substring(end + Constants.REMOVE_END.length);
}

return result;
Expand Down

0 comments on commit 529cc7d

Please sign in to comment.