NIHVIVO-2211 Remove unnecessary check for null IdentifierBundle.
This commit is contained in:
parent
4ccf33f724
commit
cd03621606
1 changed files with 23 additions and 25 deletions
|
@ -30,7 +30,6 @@ public class SelfEditing2RoleIdentifierFactory implements
|
||||||
public IdentifierBundle getIdentifierBundle(ServletRequest request,
|
public IdentifierBundle getIdentifierBundle(ServletRequest request,
|
||||||
HttpSession session, ServletContext context) {
|
HttpSession session, ServletContext context) {
|
||||||
IdentifierBundle whoToAuth = RequestIdentifiers.getIdBundleForRequest(request);
|
IdentifierBundle whoToAuth = RequestIdentifiers.getIdBundleForRequest(request);
|
||||||
if( whoToAuth != null ){
|
|
||||||
WebappDaoFactory wdf = (WebappDaoFactory)context.getAttribute("webappDaoFactory");
|
WebappDaoFactory wdf = (WebappDaoFactory)context.getAttribute("webappDaoFactory");
|
||||||
if( wdf == null )
|
if( wdf == null )
|
||||||
return whoToAuth;
|
return whoToAuth;
|
||||||
|
@ -54,7 +53,6 @@ public class SelfEditing2RoleIdentifierFactory implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return whoToAuth;
|
return whoToAuth;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue