mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
add type
This commit is contained in:
parent
f55ad19141
commit
b0170a2632
@ -6,7 +6,7 @@ import { stat, createReadStream, ReadStream } from 'fs-extra';
|
||||
|
||||
import type { IAsset } from '../../../../types';
|
||||
|
||||
const httpMethod = (filepath) => {
|
||||
const httpMethod = (filepath: string) => {
|
||||
return filepath?.startsWith('https') ? https : http;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user