Skip to content

Commit

Permalink
Linting and copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Dec 1, 2023
1 parent 3bda0ed commit 1da1a67
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/convert/convert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package convert

import specschema "github.com/hashicorp/terraform-plugin-codegen-spec/schema"
Expand Down Expand Up @@ -83,11 +86,7 @@ func (c OptionalRequired) IsRequired() bool {
}

func (c OptionalRequired) IsOptional() bool {
if c.optionalRequired == specschema.Optional {
return true
}

return false
return c.optionalRequired == specschema.Optional
}

type Sensitive struct {
Expand Down
3 changes: 3 additions & 0 deletions internal/datasource/convert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package datasource

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/convert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/resource/convert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package resource

import (
Expand Down

0 comments on commit 1da1a67

Please sign in to comment.