tencentyun / wafer2-node-sdk

Wafer2 SDK for Node.js
Other
268 stars 59 forks source link

fix TypeError because of missing parameters #37

Closed c708423 closed 6 years ago

c708423 commented 6 years ago

After node v10.0.0 , fs.unlink The callback parameter is no longer optional. Not passing it will throw a TypeError at runtime. use fs.unlinkSync instead.

jas0ncn commented 6 years ago

.unlinkSync is a synchronize api. Pass empty function works same. (https://github.com/tencentyun/wafer2-node-sdk/commit/bdfd655881e1b4274ee71635ab04b6415945b62d)