Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maryliag committed Oct 11, 2024
1 parent 90dccfd commit fca2db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/node/opentelemetry-instrumentation-pg/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function patchCallback(
res: object
) {
if (err) {
if (err.hasOwnProperty('code')) {
if (Object.prototype.hasOwnProperty.call(err, 'code')) {
attributes[ATTR_ERROR_TYPE] = (err as any)['code'];
}

Expand Down

0 comments on commit fca2db1

Please sign in to comment.