mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 22:13:44 +00:00
squid:S1488 - Local Variables should not be declared and then immediately returned or thrown
This commit is contained in:
1 parent
1a55f3a420
commit
4e40cc3888
4 files changed
+5
-11
No files matched your search
@@ -72,9 +72,7 @@ public class DbManager {
|
||||
return null;
|
||||
}
|
||||
Document doc = iterable.first();
|
||||
UserAccount userAccount =
|
||||
new UserAccount(userId, doc.getString("userName"), doc.getString("additionalInfo"));
|
||||
return userAccount;
|
||||
return new UserAccount(userId, doc.getString("userName"), doc.getString("additionalInfo"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user