From eba4cf6390bf1eee05bc4b1cec97a87abe0f6dfd Mon Sep 17 00:00:00 2001 From: Tyler Cipriani Date: Thu, 13 Sep 2018 11:25:07 -0600 Subject: Remove some types that will be inferred Adding types to variables that would have their types inferred from function return types causes lint errors in go1.10.3 (my local machine). Change-Id: I71ffbe7843084b4bd22b15ed223ed05d4ccc9aaa --- cmd/blubber/main.go | 6 +++--- cmd/blubberoid/main.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/blubber/main.go b/cmd/blubber/main.go index 53009ea..9160e06 100644 --- a/cmd/blubber/main.go +++ b/cmd/blubber/main.go @@ -17,9 +17,9 @@ import ( const parameters = "config.yaml variant" var ( - showHelp *bool = getopt.BoolLong("help", 'h', "show help/usage") - showVersion *bool = getopt.BoolLong("version", 'v', "show version information") - policyURI *string = getopt.StringLong("policy", 'p', "", "policy file URI", "uri") + showHelp = getopt.BoolLong("help", 'h', "show help/usage") + showVersion = getopt.BoolLong("version", 'v', "show version information") + policyURI = getopt.StringLong("policy", 'p', "", "policy file URI", "uri") ) func main() { diff --git a/cmd/blubberoid/main.go b/cmd/blubberoid/main.go index b15f603..f342a57 100644 --- a/cmd/blubberoid/main.go +++ b/cmd/blubberoid/main.go @@ -17,10 +17,10 @@ import ( ) var ( - showHelp *bool = getopt.BoolLong("help", 'h', "show help/usage") - address *string = getopt.StringLong("address", 'a', ":8748", "socket address/port to listen on (default ':8748')", "address:port") - endpoint *string = getopt.StringLong("endpoint", 'e', "/", "server endpoint (default '/')", "path") - policyURI *string = getopt.StringLong("policy", 'p', "", "policy file URI", "uri") + showHelp = getopt.BoolLong("help", 'h', "show help/usage") + address = getopt.StringLong("address", 'a', ":8748", "socket address/port to listen on (default ':8748')", "address:port") + endpoint = getopt.StringLong("endpoint", 'e', "/", "server endpoint (default '/')", "path") + policyURI = getopt.StringLong("policy", 'p', "", "policy file URI", "uri") policy *config.Policy ) -- cgit v1.2.1