Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dechoma committed Oct 16, 2024
1 parent a2582a4 commit a1708d7
Showing 1 changed file with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,17 +519,19 @@ private EntityLineage addHref(UriInfo uriInfo, EntityLineage lineage) {
static class LineageResourceContext implements ResourceContextInterface {

EntityReference destinationLineageEntityRef;

@Override
public String getResource() {
return LINEAGE_FIELD;
}

@Override
public List<EntityReference> getOwners() {
if (this.destinationLineageEntityRef != null) {
EntityInterface dstEntity = Entity.getEntity(destinationLineageEntityRef, "owners", Include.NON_DELETED);
return dstEntity.getOwners();
}
if (this.destinationLineageEntityRef != null) {
EntityInterface dstEntity =
Entity.getEntity(destinationLineageEntityRef, "owners", Include.NON_DELETED);
return dstEntity.getOwners();
}
return null;
}

Expand All @@ -548,16 +550,18 @@ public EntityReference getDomain() {
return null;
}

public LineageResourceContext(AddLineage addLineage) {
this.destinationLineageEntityRef = addLineage.getEdge().getToEntity();
}
public LineageResourceContext(AddLineage addLineage) {
this.destinationLineageEntityRef = addLineage.getEdge().getToEntity();
}

public LineageResourceContext(String toEntity, String toFqn) {
this.destinationLineageEntityRef = Entity.getEntityReferenceByName(toEntity, toFqn, Include.NON_DELETED);
}
public LineageResourceContext(String toEntity, String toFqn) {
this.destinationLineageEntityRef =
Entity.getEntityReferenceByName(toEntity, toFqn, Include.NON_DELETED);
}

public LineageResourceContext(String toEntity, UUID toUuid) {
this.destinationLineageEntityRef = Entity.getEntityReferenceById(toEntity, toUuid, Include.NON_DELETED);
}
public LineageResourceContext(String toEntity, UUID toUuid) {
this.destinationLineageEntityRef =
Entity.getEntityReferenceById(toEntity, toUuid, Include.NON_DELETED);
}
}
}

0 comments on commit a1708d7

Please sign in to comment.