Extracting local variable in order to make the code more readable.

Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This commit is contained in:
wilderrodrigues 2015-06-25 11:04:58 +02:00
parent 4690c3d844
commit ea9db195ed
1 changed files with 2 additions and 1 deletions

View File

@ -1009,7 +1009,8 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
@Override
public boolean isAgentAttached(final long hostId) {
return findAttache(hostId) != null;
final AgentAttache agentAttache = findAttache(hostId);
return agentAttache != null;
}
protected AgentAttache createAttacheForConnect(final HostVO host, final Link link) throws ConnectionException {