From 76267a54fcb1cb1aea83e34e2673d88bf8987f05 Mon Sep 17 00:00:00 2001 From: hiroka-wada <47963288+wadda0714@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:58:33 +0900 Subject: [PATCH] delete: cab validation (#1843) Co-authored-by: wadahiroka --- config/windows.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/windows.go b/config/windows.go index 1121477b..d15417dd 100644 --- a/config/windows.go +++ b/config/windows.go @@ -1,8 +1,6 @@ package config import ( - "os" - "golang.org/x/xerrors" ) @@ -15,11 +13,7 @@ type WindowsConf struct { // Validate validates configuration func (c *WindowsConf) Validate() []error { switch c.ServerSelection { - case 0, 1, 2: - case 3: - if _, err := os.Stat(c.CabPath); err != nil { - return []error{xerrors.Errorf("%s does not exist. err: %w", c.CabPath, err)} - } + case 0, 1, 2, 3: default: return []error{xerrors.Errorf("ServerSelection: %d does not support . Reference: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-uamg/07e2bfa4-6795-4189-b007-cc50b476181a", c.ServerSelection)} }