Skip to content

Commit dcd11f0

Browse files
author
Martin Guibert
committed
fix: panic on not implem and remove useless lock
1 parent 895f776 commit dcd11f0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

enumeration/enumerator/cloud_enumerator.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/snyk/driftctl/enumeration"
1010

11-
"github.com/pkg/errors"
1211
"github.com/sirupsen/logrus"
1312
"github.com/snyk/driftctl/enumeration/alerter"
1413
"github.com/snyk/driftctl/enumeration/parallel"
@@ -179,7 +178,7 @@ func (e *CloudEnumerator) Refresh(input *enumeration.RefreshInput) (*enumeration
179178
}
180179

181180
func (e *CloudEnumerator) GetSchema() (*enumeration.GetSchemasOutput, error) {
182-
return nil, errors.New("GetSchema is not implemented")
181+
panic("GetSchema is not implemented..")
183182
}
184183

185184
func (e *CloudEnumerator) retrieveRunnerResults(runner *parallel.ParallelRunner) ([]*resource.Resource, error) {
@@ -225,8 +224,6 @@ type sliceAlerter struct {
225224
}
226225

227226
func (d *sliceAlerter) Alerts() alerter.Alerts {
228-
d.lock.Lock()
229-
defer d.lock.Unlock()
230227
return d.alerts
231228
}
232229

0 commit comments

Comments
 (0)