Skip to content

Commit

Permalink
chore(detector-gcp): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Sep 9, 2024
1 parent 540e7f5 commit 0c48abb
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@
// so SDK cannot instrument them. We make sure we load fresh copies so RITM hook does its work.
// we remove all the require chain: detector -> gcp-metadata -> gaxios -> node-fetch
// but kepp other cache entries to not slow down the test more than necessary
const modules = ['opentelemetry-resource-detector-gcp', 'gcp-metadata', 'gaxios', 'node-fetch']
const modules = [
'opentelemetry-resource-detector-gcp',
'gcp-metadata',
'gaxios',
'node-fetch',
];
Object.keys(require.cache)
.filter((path) => modules.some((m) => path.includes(m)))
.forEach((key) => {
delete require.cache[key];
});
.filter(path => modules.some(m => path.includes(m)))
.forEach(key => {
delete require.cache[key];
});

import * as assert from 'assert';

Expand Down

0 comments on commit 0c48abb

Please sign in to comment.