Skip to content

Commit a5ae44b

Browse files
Apply suggestion from @DaanHoogland
Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent a849925 commit a5ae44b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/com/cloud/user/AccountManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3827,10 +3827,11 @@ public void buildACLViewSearchCriteria(SearchCriteria<? extends ControlledViewEn
38273827

38283828
@Override
38293829
public UserAccount getUserByApiKey(String apiKey) {
3830-
ApiKeyPairVO keyPair = apiKeyPairDao.findByApiKey(apiKey);
38313830
if (keyPair == null) {
38323831
return null;
38333832
}
3833+
ApiKeyPairVO keyPair = apiKeyPairDao.findByApiKey(apiKey);
3834+
38343835
return userAccountDao.findById(keyPair.getUserId());
38353836
}
38363837

0 commit comments

Comments
 (0)