Skip to content

Commit 91f8a15

Browse files
committed
Autoformat CodeQL
1 parent 47418c1 commit 91f8a15

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
@@ -386,9 +386,7 @@ class Field extends Variable {
386386
/**
387387
* Gets the tag associated with this field, or the empty string if this field has no tag.
388388
*/
389-
string getTag() {
390-
declaringType.hasOwnFieldWithTag(_, this.getName(), this.getType(), _, result)
391-
}
389+
string getTag() { declaringType.hasOwnFieldWithTag(_, this.getName(), this.getType(), _, result) }
392390
}
393391

394392
/**
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)