cloudquery / cq-provider-sdk

CloudQuery Provider SDK enables building providers to query any service or custom in-house solutions with SQL
https://cloudquery.io
Mozilla Public License 2.0
8 stars 15 forks source link

fix: Remove dead code #419

Closed shimonp21 closed 2 years ago

shimonp21 commented 2 years ago

Summary

The code inside the defaultErrorClassifier was never actually executed, because it was always passed a 'diag', but the first line in defaultErrorClassifier was "if err type is diag, return nil".

In any case, it's definitely better not to classify a single error twice. A more reasonable implementation might be to 'fall back to default classifier, if specific classifier returned nil', but for now, let's just remove it.


Use the following steps to ensure your PR is ready to be reviewed