Browse Source

ref(js): retryableImport already returns a Promise (#35294)

Evan Purkhiser 2 years ago
parent
commit
674c428c8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/utils/retryableImport.tsx

+ 1 - 1
static/app/utils/retryableImport.tsx

@@ -2,7 +2,7 @@ import {isWebpackChunkLoadingError} from 'sentry/utils';
 
 const MAX_RETRIES = 2;
 
-export default async function retryableImport<T>(
+export default function retryableImport<T>(
   fn: () => Promise<{default: T}>
 ): Promise<{default: T}> {
   let retries = 0;