Fix linting errors

This commit is contained in:
Elfo404
2022-07-18 12:00:37 +02:00
parent d56347642c
commit fa4944d814
@@ -161,13 +161,17 @@ func (dc *DatasourceProvisioner) deleteDatasources(ctx context.Context, dsToDele
}
if cmd.DeletedDatasourcesCount > 0 {
dc.correlationsStore.DeleteCorrelationsBySourceUID(ctx, correlations.DeleteCorrelationsBySourceUIDCommand{
if err := dc.correlationsStore.DeleteCorrelationsBySourceUID(ctx, correlations.DeleteCorrelationsBySourceUIDCommand{
SourceUID: getDsQuery.Result.Uid,
})
}); err != nil {
return err
}
dc.correlationsStore.DeleteCorrelationsByTargetUID(ctx, correlations.DeleteCorrelationsByTargetUIDCommand{
if err := dc.correlationsStore.DeleteCorrelationsByTargetUID(ctx, correlations.DeleteCorrelationsByTargetUIDCommand{
TargetUID: getDsQuery.Result.Uid,
})
}); err != nil {
return err
}
dc.log.Info("deleted datasource based on configuration", "name", ds.Name)
}