Skip to content

Commit 42c2989

Browse files
idodeclaretarzanek
authored andcommitted
Fix readability problems from review
1 parent acc8700 commit 42c2989

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/org/opensolaris/opengrok/index/IndexDatabase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,8 @@ private void indexDown(File dir, String parent, IndexDownArgs args)
996996
* If the file was not modified, probably skip to the
997997
* next one.
998998
*/
999-
if (uidIter != null && uidIter.term() != null &&
1000-
uidIter.term().bytesEquals(buid)) {
999+
if (uidIter != null && uidIter.term() != null
1000+
&& uidIter.term().bytesEquals(buid)) {
10011001
boolean chkres = chkFields(file, path);
10021002
if (!chkres) removeFile(false);
10031003

@@ -1529,8 +1529,8 @@ private boolean chkFields(File file, String path) throws IOException {
15291529
* ignore the check so that no extra work is done. After a re-index,
15301530
* the TABSIZE check will be active.
15311531
*/
1532-
int reqTabSize = project != null ? project.hasTabSizeSetting() ?
1533-
project.getTabSize() : 0 : 0;
1532+
int reqTabSize = project != null && project.hasTabSizeSetting() ?
1533+
project.getTabSize() : 0;
15341534
IndexableField tbsz = doc.getField(QueryBuilder.TABSIZE);
15351535
int tbszint = tbsz != null ? tbsz.numericValue().intValue(): 0;
15361536
if (tbsz != null && tbszint != reqTabSize) {

0 commit comments

Comments
 (0)