PT #160962428: Typo correction

This commit is contained in:
BoykoAlex
2019-01-15 23:28:58 -05:00
parent 9806e95cf2
commit 726bad6764

View File

@@ -105,7 +105,7 @@ public class CommonQuickfixes {
List<File> sourceFolders = IClasspathUtil.getSourceFolders(project.getClasspath()).collect(Collectors.toList());
if (!sourceFolders.isEmpty()) {
WorkspaceEdit we = new WorkspaceEdit(new ArrayList<Either<TextDocumentEdit, ResourceOperation>>());
Path metadataFilePath = sourceFolders.stream().map(f -> f.toPath()).filter(path -> Files.exists(path.resolve(METADATA_PATH))).findFirst().orElse(null);
Path metadataFilePath = sourceFolders.stream().map(f -> f.toPath()).map(path -> path.resolve(METADATA_PATH)).filter(path -> Files.exists(path)).findFirst().orElse(null);
if (metadataFilePath == null) {
metadataFilePath = sourceFolders.get(0).toPath().resolve(METADATA_PATH);
we.getDocumentChanges().add(Either.forRight(new CreateFile(metadataFilePath.toUri().toString())));