From 692284929dc50794df6ab232810fd9047ea7efaf Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sun, 26 Jul 2020 12:08:36 +0200 Subject: [PATCH] removed `all` from parsed args, not being used --- args.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/args.go b/args.go index 17eafa3..050c8ed 100644 --- a/args.go +++ b/args.go @@ -5,22 +5,21 @@ import "os" type parsedArgs struct { query string hook bool - all bool } func parseArgs() parsedArgs { - var all, hook bool + var hook bool var query string if len(os.Args) == 1 { - all = true + // pass } else if os.Args[1] == "--hook" { hook = true } else { query = os.Args[1] } - return parsedArgs{query, hook, all} + return parsedArgs{query, hook} } const poshHook = `function scoop { if ($args[0] -eq "search") { scoop-search.exe @($args | Select-Object -Skip 1) } else { scoop.ps1 @args } }`