提交 aa9f0d32 编写于 作者: S ShadelessFox

#10240 Remove unnecessary check


Former-commit-id: c0842c11
上级 584e4ade
...@@ -80,9 +80,6 @@ public class TextWithOpenFile extends TextWithOpen ...@@ -80,9 +80,6 @@ public class TextWithOpenFile extends TextWithOpen
} }
try { try {
final Path path = Paths.get(text); final Path path = Paths.get(text);
if (Files.notExists(path)) {
return null;
}
if (Files.isDirectory(path)) { if (Files.isDirectory(path)) {
return path.toString(); return path.toString();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册