mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ci: bump golangci-lint version (#2018)
* Bump golangci-lint version * Fix linters issues * Add exclude-rules for schema and test * Fix cfg
This commit is contained in:
committed by
GitHub
parent
f30a17edd4
commit
b47b46ee6d
@@ -26,7 +26,6 @@ func ExampleClient_Query() {
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
rsp, err := client.Query(ctx, "g.E()")
|
||||
if err != nil {
|
||||
@@ -38,6 +37,8 @@ func ExampleClient_Query() {
|
||||
log.Fatalf("unmashal edges")
|
||||
}
|
||||
|
||||
defer cancel()
|
||||
|
||||
for _, e := range edges {
|
||||
log.Println(e.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user