Skip to content

Commit acdbd98

Browse files
committed
simplify ExtractionError class defn
1 parent 11376bc commit acdbd98

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ql/src/codeql_ruby/Diagnostics.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ class Diagnostic extends @diagnostic {
4747
}
4848

4949
/** A diagnostic relating to a particular error in extracting a file. */
50-
class ExtractionError extends Diagnostic {
51-
ExtractionError() {
52-
this.getSeverity() = 3 and
53-
this.getTag() = "parse_error"
54-
}
50+
class ExtractionError extends Diagnostic, @diagnostic_error {
51+
ExtractionError() { this.getTag() = "parse_error" }
5552
}

0 commit comments

Comments
 (0)