Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Oct 3, 2023
1 parent ac7f156 commit 773640d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ private void displayFunction(String tokenAttrs)
TSAction action = functions.get(actionMethod);
String magicValues = viewModel.getAssetDefinitionService().getMagicValuesForInjection(token.tokenInfo.chainId);

if (Objects.equals(action.view.getUrl(), "")){
if (Objects.equals(action.view.getUrl(), ""))
{
String injectedView = tokenView.injectWeb3TokenInit(action.view.getTokenView(), tokenAttrs, tokenId);
injectedView = tokenView.injectJSAtEnd(injectedView, magicValues);
injectedView = tokenView.injectStyleAndWrapper(injectedView, action.style + "\n" + action.view.getStyle());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public TSTokenView(Element element, TokenDefinition tokenDef)
private void generateTokenView(Element element)
{

if (!Objects.equals(this.getUrl(), "")){
if (!Objects.equals(this.getUrl(), ""))
{
return;
}

Expand Down Expand Up @@ -80,7 +81,8 @@ private void generateTokenView(Element element)

public String getTokenView()
{
if (tokenView.isEmpty()){
if (tokenView.isEmpty())
{
generateTokenView(this.element);
}

Expand All @@ -89,7 +91,8 @@ public String getTokenView()

public String getStyle()
{
if (style.isEmpty()){
if (style.isEmpty())
{
generateTokenView(this.element);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,9 @@ public boolean isSchemaLessThanMinimum()
{

if (nameSpace == null)
{
return true;
}

int dateIndex = nameSpace.indexOf(TOKENSCRIPT_BASE_URL) + TOKENSCRIPT_BASE_URL.length();
int lastSeparator = nameSpace.lastIndexOf("/");
Expand Down

0 comments on commit 773640d

Please sign in to comment.