Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
MUHM committed Aug 6, 2019
1 parent 3003362 commit b6f9403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: MUHM
* @Date: 2019-04-30 16:10:23
* @Last Modified by: MUHM
* @Last Modified time: 2019-08-05 18:55:48
* @Last Modified time: 2019-08-06 10:13:03
*/
'use strict';

Expand All @@ -19,9 +19,6 @@ class TencentCOS extends BaseStorage {
}

exists(filename, targetDir = this.getTargetDir('/')) {
if (this.config.pathPrefix) {
targetDir = `/${this.config.pathPrefix}${targetDir}`;
}
return new Promise((resolve) => {
this.client.headObject({
Bucket: this.config.bucket,
Expand Down Expand Up @@ -69,9 +66,6 @@ class TencentCOS extends BaseStorage {
}

delete(filename, targetDir = this.getTargetDir('/')) {
if (this.config.pathPrefix) {
targetDir = `/${this.config.pathPrefix}${targetDir}`;
}
const params = {
Bucket: this.config.bucket,
Region: this.config.region,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghost-tencent-cos",
"version": "2.0.1",
"version": "2.0.2",
"description": "saves to Tencent Cloud Object Storage",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b6f9403

Please sign in to comment.