mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
use set literal instead of big disjunction of literals
This commit is contained in:
@@ -74,13 +74,10 @@ class ExceptionInfoSequence extends SequenceKind {
|
||||
class CallToTracebackFunction extends ErrorInfoSource {
|
||||
CallToTracebackFunction() {
|
||||
exists(string name |
|
||||
name = "extract_tb" or
|
||||
name = "extract_stack" or
|
||||
name = "format_list" or
|
||||
name = "format_exception_only" or
|
||||
name = "format_exception" or
|
||||
name = "format_tb" or
|
||||
name = "format_stack"
|
||||
name in [
|
||||
"extract_tb", "extract_stack", "format_list", "format_exception_only", "format_exception",
|
||||
"format_tb", "format_stack"
|
||||
]
|
||||
|
|
||||
this = traceback_function(name).getACall()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user