Skip to content

Commit

Permalink
Cleanup formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Oct 3, 2020
1 parent d6ceca1 commit 6a9ca0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/src/xml/nodes/declaration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ class XmlDeclaration extends XmlNode

/// Set the value of the standalone directive.
set standalone(bool value) => setAttribute(
standaloneAttribute, value == null ? null : value ? 'yes' : 'no');
standaloneAttribute,
value == null
? null
: value
? 'yes'
: 'no');

@override
XmlNodeType get nodeType => XmlNodeType.DECLARATION;
Expand Down
2 changes: 1 addition & 1 deletion test/benchmark.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'examples.dart';
/// The resulting duration is the average time measured to run [function] once.
double benchmark(Function function,
{Duration warmup = const Duration(milliseconds: 200),
Duration measure = const Duration(seconds: 2)}) {
Duration measure = const Duration(seconds: 2)}) {
_benchmark(function, warmup);
return _benchmark(function, measure);
}
Expand Down

0 comments on commit 6a9ca0b

Please sign in to comment.