Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Only pass boolean values to assert #64

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/backends/chroot/chroot_file_system.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ChrootFileSystem extends FileSystem {
assert(() {
p.Context ctx = delegate.path;
return ctx.isAbsolute(value) && value == ctx.canonicalize(value);
});
}());
_cwd = value;
}

Expand Down Expand Up @@ -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';
}
Expand Down