Skip to content

Commit cd27570

Browse files
MichaelRFairhurstnex3
authored andcommitted
Fix places awaiting void, for dart 2 (#393)
1 parent 4253057 commit cd27570

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/src/async_environment.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class AsyncEnvironment {
339339
}
340340

341341
/// Sets [inMixin] to `true` for the duration of [callback].
342-
Future asMixin(void callback()) async {
342+
Future asMixin(Future callback()) async {
343343
var oldInMixin = _inMixin;
344344
_inMixin = true;
345345
await callback();

lib/src/environment.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_environment.dart.
66
// See tool/synchronize.dart for details.
77
//
8-
// Checksum: 09ec65a907dc0d104f8d65be803428dd99fcb1c8
8+
// Checksum: 5489295cd8e8ae8e80deb3b5941285263863b15f
99

1010
import 'package:source_span/source_span.dart';
1111

test/cli/shared/source_maps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
278278

279279
group("with the target in a different directory", () {
280280
setUp(() async {
281-
await ensureDir(d.path("dir"));
281+
ensureDir(d.path("dir"));
282282
await (await runSass(
283283
["--embed-source-map", "test.scss", "dir/out.css"]))
284284
.shouldExit(0);

0 commit comments

Comments
 (0)