diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6d9e4414d..6445b601f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -68,7 +68,7 @@ jobs: go-version: "1.23.x" - name: Install utilities run: | - go install mvdan.cc/gofumpt@v0.3.1 + go install mvdan.cc/gofumpt@v0.7.0 go install github.com/daixiang0/gci@v0.12.1 - name: format all files with auto-formatter run: bash ./.github/scripts/format-all-go-code.sh "$PWD" diff --git a/tests/integration/database_sql_get_column_type_test.go b/tests/integration/database_sql_get_column_type_test.go index 055333938..009ef41fe 100644 --- a/tests/integration/database_sql_get_column_type_test.go +++ b/tests/integration/database_sql_get_column_type_test.go @@ -111,7 +111,6 @@ func TestDatabaseSqlGetColumnType(t *testing.T) { }) return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_get_columns_test.go b/tests/integration/database_sql_get_columns_test.go index 06da4bc8e..cdf85a2a2 100644 --- a/tests/integration/database_sql_get_columns_test.go +++ b/tests/integration/database_sql_get_columns_test.go @@ -65,7 +65,6 @@ func TestDatabaseSqlGetColumns(t *testing.T) { columns, err = q.GetColumns(ctx, "episodes") return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_get_index_columns_test.go b/tests/integration/database_sql_get_index_columns_test.go index ac0bee009..4d376fb7e 100644 --- a/tests/integration/database_sql_get_index_columns_test.go +++ b/tests/integration/database_sql_get_index_columns_test.go @@ -43,7 +43,6 @@ func TestDatabaseSqlGetIndexColumns(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -82,7 +81,6 @@ func TestDatabaseSqlGetIndexColumns(t *testing.T) { columns, err = q.GetIndexColumns(ctx, "./seasons", test.IndexName) return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_get_indexes_test.go b/tests/integration/database_sql_get_indexes_test.go index dee61bbde..343a3f811 100644 --- a/tests/integration/database_sql_get_indexes_test.go +++ b/tests/integration/database_sql_get_indexes_test.go @@ -43,7 +43,6 @@ func TestDatabaseSqlGetIndexes(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -69,7 +68,6 @@ func TestDatabaseSqlGetIndexes(t *testing.T) { indexes, err = q.GetIndexes(ctx, "./seasons") return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_get_primary_keys_test.go b/tests/integration/database_sql_get_primary_keys_test.go index 7c62a8158..6e3fc33e6 100644 --- a/tests/integration/database_sql_get_primary_keys_test.go +++ b/tests/integration/database_sql_get_primary_keys_test.go @@ -65,7 +65,6 @@ func TestDatabaseSqlGetPrimaryKeys(t *testing.T) { pkCols, err = q.GetPrimaryKeys(ctx, "episodes") return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_get_tables_test.go b/tests/integration/database_sql_get_tables_test.go index f5ae2b868..219a1acee 100644 --- a/tests/integration/database_sql_get_tables_test.go +++ b/tests/integration/database_sql_get_tables_test.go @@ -55,7 +55,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -74,7 +73,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { ) );`, ) - if err != nil { return err } @@ -93,7 +91,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -119,7 +116,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { tables, err = q.GetTables(ctx, ".", false, true) return err }) - if err != nil { return err } @@ -148,7 +144,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { tables, err = q.GetTables(ctx, "./subdir", false, true) return err }) - if err != nil { return err } @@ -177,7 +172,6 @@ func TestDatabaseSqlGetTables(t *testing.T) { tables, err = q.GetTables(ctx, "./subdir/seasons", false, true) return err }) - if err != nil { return err } @@ -229,7 +223,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -248,7 +241,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { ) );`, ) - if err != nil { return err } @@ -267,7 +259,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { ) )`, ) - if err != nil { return err } @@ -293,7 +284,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { tables, err = q.GetTables(ctx, ".", true, true) return err }) - if err != nil { return err } @@ -324,7 +314,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { tables, err = q.GetTables(ctx, "./subdir", true, true) return err }) - if err != nil { return err } @@ -355,7 +344,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) { tables, err = q.GetTables(ctx, "./subdir/seasons", true, true) return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_is_column_exists_test.go b/tests/integration/database_sql_is_column_exists_test.go index a10f94693..74bab9bb4 100644 --- a/tests/integration/database_sql_is_column_exists_test.go +++ b/tests/integration/database_sql_is_column_exists_test.go @@ -64,7 +64,6 @@ func TestDatabaseSqlIsColumnExists(t *testing.T) { exists, err = q.IsColumnExists(ctx, "series", column) return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_is_primary_key_test.go b/tests/integration/database_sql_is_primary_key_test.go index 2e9ee8133..4e2228434 100644 --- a/tests/integration/database_sql_is_primary_key_test.go +++ b/tests/integration/database_sql_is_primary_key_test.go @@ -66,7 +66,6 @@ func TestDatabaseSqlIsPrimaryKey(t *testing.T) { isPk, err = q.IsPrimaryKey(ctx, "episodes", pk) return err }) - if err != nil { return err } @@ -95,7 +94,6 @@ func TestDatabaseSqlIsPrimaryKey(t *testing.T) { isPk, err = q.IsPrimaryKey(ctx, "episodes", pk) return err }) - if err != nil { return err } diff --git a/tests/integration/database_sql_is_table_exists_test.go b/tests/integration/database_sql_is_table_exists_test.go index f8cde28b9..6676e01df 100644 --- a/tests/integration/database_sql_is_table_exists_test.go +++ b/tests/integration/database_sql_is_table_exists_test.go @@ -94,7 +94,6 @@ func TestDatabaseSqlIsTableExists(t *testing.T) { exists, err = q.IsTableExists(ctx, "series") return err }) - if err != nil { return err }