From c53a1998c589a544b25d53f6e6fdf0f24a4df25b Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Thu, 2 Feb 2023 21:25:25 +0800 Subject: all: replace `interface{}` with `any` (#7330) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/dbtest/dbtest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/dbtest') diff --git a/internal/dbtest/dbtest.go b/internal/dbtest/dbtest.go index 353a2952..4e6b7e6a 100644 --- a/internal/dbtest/dbtest.go +++ b/internal/dbtest/dbtest.go @@ -23,7 +23,7 @@ import ( // NewDB creates a new test database and initializes the given list of tables // for the suite. The test database is dropped after testing is completed unless // failed. -func NewDB(t *testing.T, suite string, tables ...interface{}) *gorm.DB { +func NewDB(t *testing.T, suite string, tables ...any) *gorm.DB { dbType := os.Getenv("GOGS_DATABASE_TYPE") var dbName string -- cgit v1.2.3