Skip to content

Commit 9f18e23

Browse files
committed
move variable declaration below return
1 parent 8879cfe commit 9f18e23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/org/opensolaris/opengrok/authorization/AuthorizationFramework.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,13 +686,12 @@ private void increasePluginVersion() {
686686
* @return true if it is; false otherwise
687687
*/
688688
private boolean isSessionInvalid(HttpSession session) {
689-
long version;
690-
691689
if (session.getAttribute(SESSION_VERSION) == null) {
692690
return true;
693691
}
694692

695-
version = (long) session.getAttribute(SESSION_VERSION);
693+
long version = (long) session.getAttribute(SESSION_VERSION);
694+
696695
return version != getPluginVersion();
697696
}
698697

0 commit comments

Comments
 (0)