Skip to content

Commit 07041bb

Browse files
committed
Use Method instead of Function where able
1 parent 416ed57 commit 07041bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ class OpenFileFun extends Function {
4242
/**
4343
* The `os.File.Close` function.
4444
*/
45-
class CloseFileFun extends Function {
45+
class CloseFileFun extends Method {
4646
CloseFileFun() { this.hasQualifiedName("os.File", "Close") }
4747
}
4848

4949
/**
5050
* The `os.File.Sync` function.
5151
*/
52-
class SyncFileFun extends Function {
52+
class SyncFileFun extends Method {
5353
SyncFileFun() { this.hasQualifiedName("os.File", "Sync") }
5454
}
5555

0 commit comments

Comments
 (0)