Skip to content

Commit 89345e9

Browse files
srawlinstvolkert
authored andcommitted
Only pass boolean values to assert (flutter#64)
1 parent 12156a5 commit 89345e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/backends/chroot/chroot_file_system.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class ChrootFileSystem extends FileSystem {
121121
assert(() {
122122
p.Context ctx = delegate.path;
123123
return ctx.isAbsolute(value) && value == ctx.canonicalize(value);
124-
});
124+
}());
125125
_cwd = value;
126126
}
127127

@@ -232,7 +232,7 @@ class ChrootFileSystem extends FileSystem {
232232
if (resolve) {
233233
localPath = _resolve(localPath, followLinks: followLinks);
234234
} else {
235-
assert(() => path.isAbsolute(localPath));
235+
assert(path.isAbsolute(localPath));
236236
}
237237
return '$root$localPath';
238238
}

0 commit comments

Comments
 (0)