Skip to content

Commit

Permalink
Final lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Jan 9, 2025
1 parent 1974c1d commit 2326a51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions provider/cmd/pulumi-gen-awsx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func rootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: Tool,
Short: "Pulumi Package Schema and SDK generator for pulumi-awsx",
Args: func(cmd *cobra.Command, args []string) error {
Args: func(_ *cobra.Command, args []string) error {
if len(args) != 1 {
return fmt.Errorf("accepts %d arg(s), received %d", 1, len(args))
}
Expand All @@ -88,7 +88,7 @@ func rootCmd() *cobra.Command {
}
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
cwd, err := os.Getwd()
if err != nil {
return err
Expand Down Expand Up @@ -165,7 +165,7 @@ func genPython(pkg *schema.Package, outdir string) error {
func genNodejs(pkg *schema.Package, outdir string) error {
extraFiles := map[string][]byte{}
root := filepath.Join(outdir, "..", "..", "awsx-classic")
filepath.Walk(root, func(path string, info fs.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, info fs.FileInfo, err error) error {
if err != nil {
return err
}
Expand All @@ -191,6 +191,9 @@ func genNodejs(pkg *schema.Package, outdir string) error {
extraFiles[filepath.Join("classic", rel)] = content
return nil
})
if err != nil {
return err
}
localDependencies := map[string]string{}
files, err := nodegen.GeneratePackage(Tool, pkg, extraFiles, localDependencies, false)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion provider/pkg/schemagen/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const (
availabilityZoneNames = "availabilityZoneNames"
)

func defaultSecurityGroupArgs(awsSpec schema.PackageSpec) schema.ComplexTypeSpec {
func defaultSecurityGroupArgs(_ schema.PackageSpec) schema.ComplexTypeSpec {
return schema.ComplexTypeSpec{
ObjectTypeSpec: schema.ObjectTypeSpec{
Type: "object",
Expand Down

0 comments on commit 2326a51

Please sign in to comment.