We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc698f commit c665ec9Copy full SHA for c665ec9
1 file changed
core/src/main/java/pl/project13/core/jgit/JGitCommon.java
@@ -341,13 +341,11 @@ public static boolean isRepositoryInDirtyState(Repository repo) throws GitAPIExc
341
// repo is dirty. JGit does this, so we cannot use the isClean method
342
// to get the same behaviour. Instead check dirty state without
343
// status.getUntracked().isEmpty()
344
- boolean isDirty = !(status.getAdded().isEmpty()
+ return !(status.getAdded().isEmpty()
345
&& status.getChanged().isEmpty()
346
&& status.getRemoved().isEmpty()
347
&& status.getMissing().isEmpty()
348
&& status.getModified().isEmpty()
349
&& status.getConflicting().isEmpty());
350
-
351
- return isDirty;
352
}
353
0 commit comments