mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 09:20:51 +01:00
Add await
This commit is contained in:
parent
205db3e695
commit
a327d23576
@ -3,11 +3,11 @@ import { UncompressSWF } from './UncompressSWF';
|
||||
|
||||
export const ReadSWF = async (buffer: Buffer) =>
|
||||
{
|
||||
if(Buffer.isBuffer(buffer)) return UncompressSWF(buffer);
|
||||
if(Buffer.isBuffer(buffer)) return await UncompressSWF(buffer);
|
||||
|
||||
buffer = await readFile(buffer);
|
||||
|
||||
if(!buffer) return null;
|
||||
|
||||
return UncompressSWF(buffer);
|
||||
return await UncompressSWF(buffer);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user