mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
zero tolerance fix
GitOrigin-RevId: ab3762f2ec6e9e9f4a595a37c93e7f8bf1ea822b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4011c84778
commit
c97f39dd58
+1
-2
@@ -15,7 +15,6 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public final class GitRepositoryUtil {
|
||||
private static final Logger LOG = Logger.getInstance(GitRepositoryUtil.class);
|
||||
@@ -70,7 +69,7 @@ public final class GitRepositoryUtil {
|
||||
if (projectBasePath == null) return "";
|
||||
String remoteName = getRemoteName(project);
|
||||
Optional<String> optionalRemoteName = remoteName.lines().findFirst();
|
||||
if (!optionalRemoteName.isPresent()) return "";
|
||||
if (optionalRemoteName.isEmpty()) return "";
|
||||
|
||||
GeneralCommandLine commandLine = new GeneralCommandLine()
|
||||
.withParentEnvironmentType(GeneralCommandLine.ParentEnvironmentType.CONSOLE)
|
||||
|
||||
Reference in New Issue
Block a user