Fix for analyzer STRONG_MODE_INVALID_CAST_FUNCTION_EXPR error with 1.22.0-dev.10.6 Dart SDK (#26)
diff --git a/lib/src/backends/chroot/chroot_file.dart b/lib/src/backends/chroot/chroot_file.dart
index fe45325..244b7fa 100644
--- a/lib/src/backends/chroot/chroot_file.dart
+++ b/lib/src/backends/chroot/chroot_file.dart
@@ -27,7 +27,7 @@
@override
Future<File> rename(String newPath) async {
- _SetupCallback setUp = () {};
+ _SetupCallback setUp = () async {};
if (await fileSystem.type(newPath, followLinks: false) ==
FileSystemEntityType.LINK) {