Skip to content

Commit f0d221c

Browse files
committed
Remove unnecessary async modifier
1 parent 2dfbf48 commit f0d221c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/esbuild-plugin-node/src/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function openTelemetryPlugin(
7575
if (!moduleVersion) return;
7676

7777
// See if we have an instrumentation registered for this package
78-
const matchingInstrumentation = await getInstrumentation({
78+
const matchingInstrumentation = getInstrumentation({
7979
extractedModule,
8080
moduleVersion,
8181
path: args.path,
@@ -230,15 +230,15 @@ async function getModuleVersion({
230230
return JSON.parse(packageJsonContents.toString()).version;
231231
}
232232

233-
async function getInstrumentation({
233+
function getInstrumentation({
234234
extractedModule,
235235
path,
236236
moduleVersion,
237237
}: {
238238
extractedModule: ExtractedModule;
239239
path: string;
240240
moduleVersion: string;
241-
}): Promise<InstrumentationModuleDefinition | null> {
241+
}): InstrumentationModuleDefinition | null {
242242
for (const instrumentationModuleDefinition of instrumentationModuleDefinitions) {
243243
const fullModulePath = `${extractedModule.package}/${extractedModule.path}`;
244244
const nameMatches =

0 commit comments

Comments
 (0)