From 654a8344386e2f5aa0ff8e261150636b2ad7aa5f Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 30 Jun 2024 23:26:58 +0900 Subject: [PATCH] Update scripts/encode-metacomment/main.go Co-authored-by: ICHINOSE Shogo --- scripts/encode-metacomment/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/encode-metacomment/main.go b/scripts/encode-metacomment/main.go index e91cf154..5e7e91f6 100644 --- a/scripts/encode-metacomment/main.go +++ b/scripts/encode-metacomment/main.go @@ -13,7 +13,7 @@ var toolName = flag.String("tool-name", "", "tool-name") func main() { flag.Parse() - if fprint == nil || toolName == nil { + if *fprint == "" || *toolName == "" { fmt.Println("Set both -fprint and -tool-name flags") os.Exit(1) }