Update golang.org deps and Go version (#5595)
* Update golang.org deps and Go version * Upgrade golangci-lint * all: fix new vet warnings https://github.com/golang/go/issues/60529 introduced a new vet warning for when format strings are used without arguments, which is technically a bug since it shouldn't be using the functions taking format string arguments in those cases.
This commit is contained in:
1 parent
1fb52206e2
commit
3a49c8c483
33 files changed
+176
-174
No files matched your search
@@ -26,7 +26,7 @@ func ExampleManager_hooks() {
|
||||
|
||||
d, err := common.SqlOpen(dialect, u)
|
||||
if err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
editions := edition.Editions{
|
||||
{
|
||||
@@ -146,7 +146,7 @@ func ExampleManager_hooks() {
|
||||
schema.WithEditions(editions),
|
||||
)
|
||||
if err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
_, err = m.ApplyMigrations(ctx)
|
||||
checkErr, _ := err.(schema.MigrationCheckError)
|
||||
@@ -171,7 +171,7 @@ func ExampleManager_hooks() {
|
||||
|
||||
logs, err := m.ApplyMigrations(ctx)
|
||||
if err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
for _, log := range logs {
|
||||
fmt.Printf("%s:%d:\n", log.Edition, log.Version)
|
||||
|
||||
Reference in new issue
Block a user