]> source.dussan.org Git - jgit.git/commit
RefWriter#writePackedRefs: Remove a redundant "if" check 67/197567/2
authorSergey <zakharovsergey1000@gmail.com>
Wed, 7 Dec 2022 11:49:47 +0000 (15:49 +0400)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 8 Dec 2022 09:59:58 +0000 (10:59 +0100)
commit2b21d9bbb6c98ff1b0f81df80d0726abf1d0727d
tree58c12f0c3cd9802fa8f20259e727a5caf61724ef
parent64d37a20bdffdbd2ec1fa744e1f9f598c92fb108
RefWriter#writePackedRefs: Remove a redundant "if" check

After checking the variable, the same variable was checked again inside
the "if" block, and after the first check, this variable does not
change. Remove the second unnecessary check.

Change-Id: I6a38e67073f7f93105575b8f415ad32d350af602
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefWriter.java