Skip to content

Commit 22ed2f9

Browse files
committed
Autoformat CodeQL
1 parent 9bb2a4b commit 22ed2f9

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

go/ql/lib/semmle/go/Scopes.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,7 @@ class Field extends Variable {
389389
/**
390390
* Gets the tag associated with this field, or the empty string if this field has no tag.
391391
*/
392-
string getTag() {
393-
declaringType.hasOwnFieldWithTag(_, this.getName(), this.getType(), _, result)
394-
}
392+
string getTag() { declaringType.hasOwnFieldWithTag(_, this.getName(), this.getType(), _, result) }
395393
}
396394

397395
/**
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import go
22

33
from NamedType nt, InterfaceType it, Type methodType, string id
4-
where nt.getName() = "MixedExportedAndNot" and it = nt.getUnderlyingType()
5-
and methodType = it.getMethodTypeById(id)
4+
where
5+
nt.getName() = "MixedExportedAndNot" and
6+
it = nt.getUnderlyingType() and
7+
methodType = it.getMethodTypeById(id)
68
select it.pp(), methodType.pp(), id
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import go
22

33
from StructType s, Field f, string tag
4-
where f = s.getOwnField(_, _) and tag = f.getTag()
5-
and tag != ""
4+
where
5+
f = s.getOwnField(_, _) and
6+
tag = f.getTag() and
7+
tag != ""
68
select s.pp(), f, tag

0 commit comments

Comments
 (0)