Skip to content

Commit a63bb1b

Browse files
authored
Tidy
1 parent f9fe86a commit a63bb1b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

go/ql/lib/semmle/go/security/SqlInjectionCustomizations.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ module SqlInjection {
2525
*/
2626
abstract class Sanitizer extends DataFlow::Node { }
2727

28-
/**
29-
* A numeric- or boolean-typed node, considered a sanitizer for sql injection.
30-
*/
31-
class NumericOrBooleanSanitizer extends Sanitizer {
32-
NumericOrBooleanSanitizer() {
33-
this.getType() instanceof NumericType or this.getType() instanceof BoolType
34-
}
35-
}
36-
3728
/**
3829
* DEPRECATED: Use `Sanitizer` instead.
3930
*
@@ -49,4 +40,13 @@ module SqlInjection {
4940

5041
/** A NoSql query, considered as a taint sink for SQL injection. */
5142
class NoSqlQueryAsSink extends Sink instanceof NoSql::Query { }
43+
44+
/**
45+
* A numeric- or boolean-typed node, considered a sanitizer for sql injection.
46+
*/
47+
class NumericOrBooleanSanitizer extends Sanitizer {
48+
NumericOrBooleanSanitizer() {
49+
this.getType() instanceof NumericType or this.getType() instanceof BoolType
50+
}
51+
}
5252
}

0 commit comments

Comments
 (0)