From 1233188f050ebb33378c5b3bc6b2dc68eea18541 Mon Sep 17 00:00:00 2001 From: srinandan <13950006+srinandan@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:01:26 -0700 Subject: [PATCH] chore: fix linting issues #300 --- cmd/sharedflows/depsf.go | 3 ++- internal/bundlegen/proxybundle/proxybundle.go | 7 ++++--- internal/client/appgroups/appgroups.go | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/sharedflows/depsf.go b/cmd/sharedflows/depsf.go index 88f42547a..578b8fa28 100644 --- a/cmd/sharedflows/depsf.go +++ b/cmd/sharedflows/depsf.go @@ -16,9 +16,10 @@ package sharedflows import ( "encoding/json" + "time" + "internal/apiclient" "internal/clilog" - "time" "internal/client/sharedflows" diff --git a/internal/bundlegen/proxybundle/proxybundle.go b/internal/bundlegen/proxybundle/proxybundle.go index f524e7769..f300ccd9e 100644 --- a/internal/bundlegen/proxybundle/proxybundle.go +++ b/internal/bundlegen/proxybundle/proxybundle.go @@ -43,8 +43,10 @@ import ( "golang.org/x/oauth2" ) -var proxyRootDir = "apiproxy" -var sfRootDir = "sharedflowbundle" +var ( + proxyRootDir = "apiproxy" + sfRootDir = "sharedflowbundle" +) func GenerateAPIProxyBundleFromOAS(name string, content string, @@ -692,7 +694,6 @@ func archiveBundle(pathToZip, destinationPath string, sharedflow bool) (err erro } func GitHubImportBundle(owner string, repo string, repopath string, sharedflow bool) (err error) { - var rootDir string if sharedflow { diff --git a/internal/client/appgroups/appgroups.go b/internal/client/appgroups/appgroups.go index 6802f54d8..db9d5de93 100644 --- a/internal/client/appgroups/appgroups.go +++ b/internal/client/appgroups/appgroups.go @@ -136,7 +136,7 @@ func Update(name string, channelURI string, channelID string, displayName string developerDetailsAttribute.Value = getDeveloperDetails(devs) } - //clear existing attributes + // clear existing attributes a.Attributes = nil if len(attrs) != 0 {