mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Invert condition
GitOrigin-RevId: f5d63832832eedd280ddf4c66dbca38b1053f854
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e6b1ab6572
commit
26ad7df525
+1
-1
@@ -708,7 +708,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
@NotNull
|
||||
public FileType getFileTypeByFile(@NotNull VirtualFile file, @Nullable byte[] content) {
|
||||
FileType fileType = getByFile(file);
|
||||
if ((fileType == null || fileType instanceof PlainTextLikeFileType) && file instanceof StubVirtualFile) {
|
||||
if ((fileType == null || fileType instanceof PlainTextLikeFileType) && !(file instanceof StubVirtualFile)) {
|
||||
return getOrDetectFromContent(file, content);
|
||||
}
|
||||
return ObjectUtils.notNull(fileType, UnknownFileType.INSTANCE);
|
||||
|
||||
Reference in New Issue
Block a user