diff --git a/pkg/saved_objects/saved_objects.go b/pkg/saved_objects/saved_objects.go index d1114c1..a0e0ba0 100644 --- a/pkg/saved_objects/saved_objects.go +++ b/pkg/saved_objects/saved_objects.go @@ -60,7 +60,6 @@ func (p *SavedObjectsProvider) GetObject(ctx context.Context, obj *SavedObjectOS } res, err := p.httpClient.Do(req) - if err != nil { return nil, diag.FromErr(fmt.Errorf("GET '%v' failed: %w", req.URL.String(), err)) } diff --git a/pkg/saved_objects/saved_objects_test.go b/pkg/saved_objects/saved_objects_test.go index 9ebe641..9bbd74c 100644 --- a/pkg/saved_objects/saved_objects_test.go +++ b/pkg/saved_objects/saved_objects_test.go @@ -112,7 +112,6 @@ func TestIgnoreFieldsOnIndexPatternProperty(t *testing.T) { if tC.expectFields != hasFields { t.Errorf("Expected field presence: %v but actual field presence was %v", tC.expectFields, hasFields) } - }) } }