mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Autoformat Go
This commit is contained in:
@@ -32,7 +32,7 @@ func taintedFunction() func() (*tls.Certificate, error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func sink(_ *tls.Certificate) { }
|
||||
func sink(_ *tls.Certificate) {}
|
||||
|
||||
func testCertStorageFetch() {
|
||||
cert, _ := (*taintedCertStorage()).Fetch("myhostname.org", nil)
|
||||
|
||||
@@ -29,7 +29,7 @@ func newpgtest(query string, conn newpg.Conn, db newpg.DB, tx newpg.Tx) {
|
||||
tx.Prepare(query) // $ querystring=query
|
||||
}
|
||||
|
||||
func sink(x interface{}) { }
|
||||
func sink(x interface{}) {}
|
||||
|
||||
func pgormtest(query string, q orm.Query) {
|
||||
orm.Q(query) // $ querystring=query
|
||||
@@ -53,4 +53,4 @@ func pgormtest(query string, q orm.Query) {
|
||||
sink(sink2) // $ flowfrom=Appended1
|
||||
sink(sink3) // $ flowfrom=Appended2
|
||||
sink(sink4) // $ flowfrom=Query
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user