Skip to content

Commit 649e9a8

Browse files
committed
Autoformat
1 parent ef23dd7 commit 649e9a8

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowUtil.qll

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ class Content extends TContent {
186186
/**
187187
* Gets the `ContentSet` contaning only this content.
188188
*/
189-
ContentSet asContentSet() {
190-
result.asOneContent() = this
191-
}
189+
ContentSet asContentSet() { result.asOneContent() = this }
192190
}
193191

194192
/** A reference through a field. */
@@ -268,9 +266,7 @@ private newtype TContentSet =
268266
*/
269267
class ContentSet instanceof TContentSet {
270268
/** Gets a content that may be stored into when storing into this set. */
271-
Content getAStoreContent() {
272-
this = TOneContent(result)
273-
}
269+
Content getAStoreContent() { this = TOneContent(result) }
274270

275271
/** Gets a content that may be read from when reading from this set. */
276272
Content getAReadContent() {
@@ -311,16 +307,12 @@ class ContentSet instanceof TContentSet {
311307
/**
312308
* If this is a singleton content set, returns the content.
313309
*/
314-
Content asOneContent() {
315-
this = TOneContent(result)
316-
}
310+
Content asOneContent() { this = TOneContent(result) }
317311

318312
/**
319313
* Holds if this is a universal content set.
320314
*/
321-
predicate isUniversalContent() {
322-
this = TAllContent()
323-
}
315+
predicate isUniversalContent() { this = TAllContent() }
324316
}
325317

326318
/**

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ module Private {
515515
SummaryComponent qualifier() { result = argument(-1) }
516516

517517
/** Gets a summary component for field `f`. */
518-
SummaryComponent field(Field f) { result = content(any(FieldContent c | c.getField() = f).asContentSet()) }
518+
SummaryComponent field(Field f) {
519+
result = content(any(FieldContent c | c.getField() = f).asContentSet())
520+
}
519521

520522
/** Gets a summary component that represents the return value of a call. */
521523
SummaryComponent return() { result = SC::return(_) }

0 commit comments

Comments
 (0)