diff --git a/package.json b/package.json index 92c5d1e..c72adca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/oss", - "version": "0.0.11", + "version": "0.0.12", "main": "dist/index.js", "scripts": { "build": "tsup", diff --git a/src/index.ts b/src/index.ts index 93e8e65..19d1efa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -157,9 +157,6 @@ export class OssBase implements OssBaseOperation { const bucketName = this.bucketName; try { const obj = await this.client.statObject(bucketName, `${this.prefix}${objectName}`); - if (obj && checkFile && obj.size === 0) { - return null; - } return obj; } catch (e) { if (e.code === 'NotFound') {