Skip to content

Commit fe9a7fa

Browse files
committed
Remove unused error type
1 parent ce0467f commit fe9a7fa

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

internal/fwserver/server_listresources.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@ import (
1515
"github.com/hashicorp/terraform-plugin-framework/resource"
1616
)
1717

18-
type ListResourceTypeNotFoundError struct {
19-
TypeName string
20-
}
21-
22-
func (e *ListResourceTypeNotFoundError) Error() string {
23-
return "listResource Type Not Found: no listResource type named " + e.TypeName + " was found in the provider."
24-
}
25-
26-
func (e *ListResourceTypeNotFoundError) Is(err error) bool {
27-
compatibleErr, ok := err.(*ListResourceTypeNotFoundError)
28-
if !ok {
29-
return false
30-
}
31-
32-
return e.TypeName == compatibleErr.TypeName
33-
}
34-
3518
func (s *Server) ListResourceType(ctx context.Context, typeName string) (list.ListResource, diag.Diagnostics) {
3619
listResourceFuncs, diags := s.ListResourceFuncs(ctx)
3720
listResourceFunc, ok := listResourceFuncs[typeName]

0 commit comments

Comments
 (0)