Format with the latest formatter version (#363)

This commit is contained in:
Natalie Weizenbaum 2018-06-19 12:46:24 -07:00 committed by GitHub
parent 6e6bfd350c
commit 61eea4abd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,8 @@ void main() {
({ ({
'lib/src/visitor/async_evaluate.dart': 'lib/src/visitor/evaluate.dart', 'lib/src/visitor/async_evaluate.dart': 'lib/src/visitor/evaluate.dart',
'lib/src/async_environment.dart': 'lib/src/environment.dart' 'lib/src/async_environment.dart': 'lib/src/environment.dart'
}).forEach((sourcePath, targetPath) { })
.forEach((sourcePath, targetPath) {
var source = new File(sourcePath).readAsStringSync(); var source = new File(sourcePath).readAsStringSync();
var target = new File(targetPath).readAsStringSync(); var target = new File(targetPath).readAsStringSync();

View File

@ -162,8 +162,8 @@ Future<Duration> _benchmark(String executable, List<String> arguments) async {
Future<Duration> _benchmarkOnce( Future<Duration> _benchmarkOnce(
String executable, List<String> arguments) async { String executable, List<String> arguments) async {
var result = await Process var result = await Process.run(
.run("sh", ["-c", "time $executable ${arguments.join(' ')}"]); "sh", ["-c", "time $executable ${arguments.join(' ')}"]);
var match = var match =
new RegExp(r"(\d+)m(\d+)\.(\d+)s").firstMatch(result.stderr as String); new RegExp(r"(\d+)m(\d+)\.(\d+)s").firstMatch(result.stderr as String);
return new Duration( return new Duration(

View File

@ -109,8 +109,8 @@ update_chocolatey() async {
"PUT", Uri.parse("https://push.chocolatey.org/api/v2/package")); "PUT", Uri.parse("https://push.chocolatey.org/api/v2/package"));
request.headers["X-NuGet-Protocol-Version"] = "4.1.0"; request.headers["X-NuGet-Protocol-Version"] = "4.1.0";
request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN"); request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN");
request.files.add(await http.MultipartFile request.files.add(await http.MultipartFile.fromPath(
.fromPath("package", "build/sass.${_chocolateyVersion()}.nupkg")); "package", "build/sass.${_chocolateyVersion()}.nupkg"));
var response = await request.send(); var response = await request.send();
if (response.statusCode ~/ 100 != 2) { if (response.statusCode ~/ 100 != 2) {