Unverified Commit 106231c0 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Use deprecated I/O constants (#17491)

The non-deprecated variants aren't widely available yet
parent aab47f07
...@@ -47,9 +47,9 @@ class AnalyzeOnce extends AnalyzeBase { ...@@ -47,9 +47,9 @@ class AnalyzeOnce extends AnalyzeBase {
for (String directory in directories) { for (String directory in directories) {
final FileSystemEntityType type = fs.typeSync(directory); final FileSystemEntityType type = fs.typeSync(directory);
if (type == FileSystemEntityType.notFound) { if (type == FileSystemEntityType.NOT_FOUND) { // ignore: deprecated_member_use
throwToolExit("'$directory' does not exist"); throwToolExit("'$directory' does not exist");
} else if (type != FileSystemEntityType.directory) { } else if (type != FileSystemEntityType.DIRECTORY) { // ignore: deprecated_member_use
throwToolExit("'$directory' is not a directory"); throwToolExit("'$directory' is not a directory");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment