Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Oct 5, 2019
1 parent 200103a commit c92854b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions example/ip_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Future<void> lookupIp(args.ArgResults results, [String query = '']) async {
// Typically you would only implement one of the following two approaches,
// but for demonstration sake we show both in this example:
if (incremental) {

// Decode the input stream, normalize it and serialize events, then extract
// the information to be printed. This approach uses less memory and is
// emitting results immediately; thought the implementation is more
Expand All @@ -100,7 +99,6 @@ Future<void> lookupIp(args.ArgResults results, [String query = '']) async {
}
});
} else {

// Wait until we have the full response body, then parse the input to a
// XML DOM tree and extract the information to be printed. This approach
// uses more memory and waits for the complete data to be downloaded
Expand Down
4 changes: 1 addition & 3 deletions example/xml_pp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ final args.ArgParser argumentParser = args.ArgParser()
help: 'Customizes the indention when pretty printing.',
defaultsTo: ' ')
..addFlag('pretty',
abbr: 'p',
help: 'Reformats the output to be pretty.',
defaultsTo: true);
abbr: 'p', help: 'Reformats the output to be pretty.', defaultsTo: true);

void printUsage() {
stdout.writeln('Usage: xml_pp [options] {files}');
Expand Down

0 comments on commit c92854b

Please sign in to comment.