You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/04/01 06:03:43 UTC

[38/50] [abbrv] incubator-weex git commit: * [html5] fix danger.js

* [html5] fix danger.js


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

Branch: refs/heads/dev
Commit: 5f57aa76dc99aa18de722b7e90c31a5c60e9c48c
Parents: 15f10e6
Author: MrRaindrop <te...@gmail.com>
Authored: Thu Mar 30 16:27:04 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu Mar 30 16:27:04 2017 +0800

----------------------------------------------------------------------
 dangerfile.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5f57aa76/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index b62c110..00ab9b8 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -23,7 +23,7 @@ const flowIgnorePaths = [
   'bin',
   'dist',
   'flow-typed'
-].map(absolute(relPath));
+].map(absolute);
 
 // new js files should have `@flow` at the top
 const unFlowedFiles = jsFiles.filter(filepath => {
@@ -31,7 +31,8 @@ const unFlowedFiles = jsFiles.filter(filepath => {
   const len = flowIgnorePaths.length
   while (i < len) {
     const p = flowIgnorePaths[i]
-    if (p.indexOf(filepath) > -1) {
+    console.log(filepath, p, filepath.indexOf(p))
+    if (filepath.indexOf(p) > -1) {
       // ignore this file because it's in the flow-ignore-paths.
       return false;
     }