Sfoglia il codice sorgente

Remove unnecessary Promise.resolve() calls

cg-zhou 5 mesi fa
parent
commit
0792fc0768
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      backend/index.js

+ 0 - 2
backend/index.js

@@ -20,11 +20,9 @@ async function appStart () {
 				logger.info('IP Ranges fetch is enabled');
 				return internalIpRanges.fetch().catch((err) => {
 					logger.error('IP Ranges fetch failed, continuing anyway:', err.message);
-					return Promise.resolve();
 				});
 			} else {
 				logger.info('IP Ranges fetch is disabled by environment variable');
-				return Promise.resolve();
 			}
 		})
 		.then(() => {