Get rid of EndpointType.getDescription

This commit is contained in:
tiferet
2023-02-27 10:22:57 -08:00
parent 43db83a28f
commit 1d5afaec0e
2 changed files with 1 additions and 3 deletions

View File

@@ -14,8 +14,6 @@ abstract class EndpointType extends string {
bindingset[this]
EndpointType() { any() }
final string getDescription() { result = this }
/**
* Gets the name of the sink/source kind for this endpoint type as used in Models as Data.
*

View File

@@ -39,7 +39,7 @@ where
// in.
sink instanceof ExternalAPIs::ExternalApiDataNode and
message =
sinkType.getDescription() + "\n" +
sinkType + "\n" +
// Extract the needed metadata for this endpoint.
any(string metadata | EndpointCharacteristics::hasMetadata(sink, metadata))
)