From 79eef69f732a463d9ca43bcb9e9786dbd8e99180 Mon Sep 17 00:00:00 2001 From: AdachiAndShimamura Date: Thu, 21 Mar 2024 21:49:02 +0800 Subject: [PATCH] Remove irrelevant code --- libcs/client/web/api/api.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libcs/client/web/api/api.go b/libcs/client/web/api/api.go index f1dab0e8..b42c4991 100644 --- a/libcs/client/web/api/api.go +++ b/libcs/client/web/api/api.go @@ -182,10 +182,6 @@ func SaveConfigToFile(c *client.Client) gin.HandlerFunc { c.Logger.Info().Str("config", fullPath).Msg("save config to file") Reload(ctx) - if err != nil { - response.FailWithMessage(err.Error(), ctx) - return - } response.SuccessWithMessage("save config to "+fullPath, ctx) } }