From 1250564dc27f097cadb175908ad0d08389f36a42 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 11 Jan 2018 08:51:33 -0800 Subject: [PATCH] Only pass boolean values to assert --- lib/src/backends/chroot/chroot_file_system.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/backends/chroot/chroot_file_system.dart b/lib/src/backends/chroot/chroot_file_system.dart index 963832a..54a4892 100644 --- a/lib/src/backends/chroot/chroot_file_system.dart +++ b/lib/src/backends/chroot/chroot_file_system.dart @@ -121,7 +121,7 @@ class ChrootFileSystem extends FileSystem { assert(() { p.Context ctx = delegate.path; return ctx.isAbsolute(value) && value == ctx.canonicalize(value); - }); + }()); _cwd = value; } @@ -232,7 +232,7 @@ class ChrootFileSystem extends FileSystem { if (resolve) { localPath = _resolve(localPath, followLinks: followLinks); } else { - assert(() => path.isAbsolute(localPath)); + assert(path.isAbsolute(localPath)); } return '$root$localPath'; }