Skip to content

Commit

Permalink
Make golint happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
paddycarver committed Nov 11, 2021
1 parent 8127013 commit 1ef303e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tfprotov5/tf5server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func WithGoPluginLogger(logger hclog.Logger) ServeOpt {
})
}

// WithLoggingSink returns a ServeOpt that will enable the logging sink, which
// is used in test frameworks to control where terraform-plugin-log output is
// written and at what levels, mimicking Terraform's logging sink behaviors.
func WithLoggingSink() ServeOpt {
return serveConfigFunc(func(in *ServeConfig) error {
in.useLoggingSink = true
Expand Down
3 changes: 3 additions & 0 deletions tfprotov6/tf6server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func WithGoPluginLogger(logger hclog.Logger) ServeOpt {
})
}

// WithLoggingSink returns a ServeOpt that will enable the logging sink, which
// is used in test frameworks to control where terraform-plugin-log output is
// written and at what levels, mimicking Terraform's logging sink behaviors.
func WithLoggingSink() ServeOpt {
return serveConfigFunc(func(in *ServeConfig) error {
in.useLoggingSink = true
Expand Down
3 changes: 3 additions & 0 deletions tftypes/attribute_path_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ type AttributePathError struct {
err error
}

// Equal returns true if two AttributePathErrors are semantically equal. To be
// considered equal, they must have the same path and if errors are set, the
// strings returned by their `Error()` methods must match.
func (a AttributePathError) Equal(o AttributePathError) bool {
if !a.Path.Equal(o.Path) {
return false
Expand Down

0 comments on commit 1ef303e

Please sign in to comment.