Skip to content

Commit

Permalink
chore: fix linting issues #345
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Dec 2, 2023
1 parent b270478 commit 1daa094
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/apidocs/export.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
8 changes: 5 additions & 3 deletions cmd/org/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ var ExportCmd = &cobra.Command{
}

clilog.Info.Println("Exporting API Portal apidocs Configuration...")
apidocs.Export(portalsFolderName)
if err = apidocs.Export(portalsFolderName); proceedOnError(err) != nil {
return err
}

if runtimeType == "HYBRID" {
clilog.Info.Println("Exporting Sync Authorization Identities...")
Expand Down Expand Up @@ -311,10 +313,10 @@ func createFolders() (err error) {
if err = os.Mkdir(proxiesFolderName, 0o755); err != nil {
return err
}
if os.Mkdir(sharedFlowsFolderName, 0o755); err != nil {
if err = os.Mkdir(sharedFlowsFolderName, 0o755); err != nil {
return err
}
if os.Mkdir(portalsFolderName, 0o755); err != nil {
if err = os.Mkdir(portalsFolderName, 0o755); err != nil {
return err
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/sites/sites.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var Cmd = &cobra.Command{
Long: "Manage Apigee API Portals",
}

var org, siteid, id, name string
var org string

func init() {
Cmd.PersistentFlags().StringVarP(&org, "org", "o",
Expand Down

0 comments on commit 1daa094

Please sign in to comment.