Skip to content

Commit

Permalink
Small stylistic improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Nov 22, 2024
1 parent 981948f commit 4a05c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/ql/lib/semmle/go/Types.qll
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ class StructType extends @structtype, CompositeType {
* The depth of a field `f` declared in this type is zero.
*/
Field getFieldAtDepth(string name, int depth) {
depth = min(int depthCand | exists(Field f | this.hasFieldCand(name, f, depthCand, _))) and
depth = min(int depthCand | this.hasFieldCand(name, _, depthCand, _)) and
this.hasFieldCand(name, result, depth, _) and
strictcount(Field f | this.hasFieldCand(name, f, depth, _)) = 1
}
Expand Down

0 comments on commit 4a05c3d

Please sign in to comment.