From ce1a5f60694169603f19e4e7a2f510e9ba65e0d9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 31 Mar 2023 10:13:20 +0800 Subject: [PATCH] refactor: refactor file reading to use os package methods - Replace `ioutil.ReadFile` with `os.ReadFile` for file reading Signed-off-by: Bo-Yi Wu --- plugin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.go b/plugin.go index b690a0e..c863c25 100644 --- a/plugin.go +++ b/plugin.go @@ -2,7 +2,6 @@ package main import ( "errors" - "io/ioutil" "log" "os" "path/filepath" @@ -158,7 +157,7 @@ func (p Plugin) Exec() error { } if p.Config.ZipFile != "" { - contents, err := ioutil.ReadFile(p.Config.ZipFile) + contents, err := os.ReadFile(p.Config.ZipFile) if err != nil { return err }