mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
Get rid of EndpointType.getDescription
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user