From 0218dfd02ea1b685fccc03d1dbbb584ee8096491 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Thu, 20 Feb 2025 17:41:08 +0800 Subject: [PATCH] fix conf --- conf/new.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/conf/new.go b/conf/new.go index e08a537..32b84ff 100644 --- a/conf/new.go +++ b/conf/new.go @@ -41,10 +41,6 @@ func New(srvKey string, cfg any) { log.Fatalln("ERROR: Service Not Nil", cfp) } - if !strings.Contains(string(yamlFile), "Port:") { - log.Fatalln("ERROR: Port Not Nil", cfp) - } - // 解析YAML err = yaml.Unmarshal(yamlFile, cfg) if err != nil {