Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Dart: Remove pedantic to simplify startup
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed May 17, 2019
1 parent bbaf4ec commit 4bf27ba
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion containers/dart/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
// "appPort": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "pub get"
// "postCreateCommand": ""
}
6 changes: 0 additions & 6 deletions containers/dart/test-project/analysis_options.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions containers/dart/test-project/bin/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*-------------------------------------------------------------------------------------------------------------*/

import 'dart:io';
import 'package:pedantic/pedantic.dart';

Future main() async {
final server = await HttpServer.bind(
Expand All @@ -19,7 +18,6 @@ Future main() async {
print('Listening on localhost:${server.port}');

await for (HttpRequest request in server) {
request.response.write('Hello remote world!');
unawaited(request.response.close());
request.response..write('Hello remote world!')..close();
}
}
4 changes: 0 additions & 4 deletions containers/dart/test-project/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ description: A test project

environment:
sdk: '>=2.1.0 <3.0.0'

dev_dependencies:
pedantic: ^1.0.0

0 comments on commit 4bf27ba

Please sign in to comment.