From 9a46106cc0fa952efd7a6d53d52f3096b4e08c3a Mon Sep 17 00:00:00 2001 From: YangHgRi <57426791+YangHgRi@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:55:49 +0800 Subject: [PATCH] refactor: specify parameter type in function to improve type safety and clarity (#2317) --- cli/upgrade/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/upgrade/config.go b/cli/upgrade/config.go index 235bc055..09c74912 100644 --- a/cli/upgrade/config.go +++ b/cli/upgrade/config.go @@ -33,7 +33,7 @@ type ClusterOptions struct { MaxIdleConnsPerHost int } -func Parse(fpath string, configPtr interface{}) error { +func Parse(fpath string, configPtr *Config) error { var ( tBuf []byte )