浏览代码

Code style

ekardnam 4 年之前
父节点
当前提交
9869f60213
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bot.js

+ 1 - 1
bot.js

@@ -93,7 +93,7 @@ let bot = {
 
   promisePost: function(post, reply = null) {
     let that = this
-    return new Promise(function(resolve, reject) {
+    return new Promise((resolve, reject) => {
       that.twitter.post('statuses/update', { status: post, in_reply_to_status_id: reply }, (err, data, response) => {
         if (err) reject(err)
         else resolve(data)