You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/23 02:36:06 UTC

incubator-weex git commit: * [test] update danger, to protect unknown error

Repository: incubator-weex
Updated Branches:
  refs/heads/release-0.16 e2323d214 -> ef11cd302


* [test] update danger, to protect unknown error


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ef11cd30
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ef11cd30
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ef11cd30

Branch: refs/heads/release-0.16
Commit: ef11cd302c16df13c304e05b849da3db6d62c96c
Parents: e2323d2
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 23 10:36:10 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 23 10:36:10 2017 +0800

----------------------------------------------------------------------
 dangerfile.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ef11cd30/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 23da68a..fed1355 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -458,6 +458,7 @@ function findBlameReviewers(fileToDeletedLinesMap, fileToNormalLinesMap, fileToB
 
   console.log('blame point:', reviewers)
   var names = Object.keys(reviewers)
+  if(!names||!names instanceof Array||names.length<=0)return;
   names.sort((name1, name2) => {
     return reviewers[name1] > reviewers[name2] ? -1 : 1
   })