Skip to content

Commit 1f932d4

Browse files
egregius313owen-mc
andcommitted
Remove unnecessary asExpr()
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
1 parent 26b49dd commit 1f932d4

File tree

1 file changed

+1
-1
lines changed
  • go/ql/lib/semmle/go/frameworks/stdlib

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/frameworks/stdlib/Os.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module Os {
4747
private class Stdin extends SourceNode {
4848
Stdin() {
4949
exists(Variable osStdin | osStdin.hasQualifiedName("os", "Stdin") |
50-
this.asExpr() = osStdin.getARead().asExpr()
50+
this = osStdin.getARead()
5151
)
5252
}
5353

0 commit comments

Comments
 (0)