diff --git a/core/src/main/java/me/mastercapexd/auth/link/user/AccountLinkAdapter.java b/core/src/main/java/me/mastercapexd/auth/link/user/AccountLinkAdapter.java index b42fefc9..9b867556 100644 --- a/core/src/main/java/me/mastercapexd/auth/link/user/AccountLinkAdapter.java +++ b/core/src/main/java/me/mastercapexd/auth/link/user/AccountLinkAdapter.java @@ -9,11 +9,9 @@ import me.mastercapexd.auth.database.model.AccountLink; public class AccountLinkAdapter extends LinkUserTemplate { - private final LinkUserInfo linkUserInfo; public AccountLinkAdapter(AccountLink accountLink, Account account) { - super(findLinkType(accountLink), account, LinkUserInfo.of(LinkUserIdentificator.ofParsed(accountLink.getLinkUserId()))); - this.linkUserInfo = LinkUserInfo.of(LinkUserIdentificator.ofParsed(accountLink.getLinkUserId()), accountLink.isLinkEnabled()); + super(findLinkType(accountLink), account, LinkUserInfo.of(LinkUserIdentificator.ofParsed(accountLink.getLinkUserId()), accountLink.isLinkEnabled())); } private static LinkType findLinkType(AccountLink accountLink) { @@ -23,8 +21,4 @@ private static LinkType findLinkType(AccountLink accountLink) { .orElseThrow(() -> new IllegalArgumentException("Link type " + accountLink.getLinkType() + " not exists!")); } - @Override - public LinkUserInfo getLinkUserInfo() { - return linkUserInfo; - } }