Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
974f49ff
Commit
974f49ff
authored
6 years ago
by
Alexey Kudravtsev
Browse files
Options
Download
Email Patches
Plain Diff
do not call expensive isUnderMyVcs() twice
parent
51aaa136
Branches unavailable
Tags unavailable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/vcs-api/src/com/intellij/openapi/vcs/VcsVFSListener.java
+1
-3
.../vcs-api/src/com/intellij/openapi/vcs/VcsVFSListener.java
with
1 addition
and
3 deletions
+1
-3
platform/vcs-api/src/com/intellij/openapi/vcs/VcsVFSListener.java
+
1
-
3
View file @
974f49ff
...
...
@@ -317,9 +317,7 @@ public abstract class VcsVFSListener implements Disposable {
public
void
fileCreated
(
@NotNull
final
VirtualFileEvent
event
)
{
VirtualFile
file
=
event
.
getFile
();
LOG
.
debug
(
"fileCreated: "
,
file
);
if
(
isUnderMyVcs
(
file
))
{
fileAdded
(
event
,
file
);
}
fileAdded
(
event
,
file
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help