Commit 4f76ff0e authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use .some instead of .find for phantomjs compatibility

parent f947972d
...@@ -428,15 +428,7 @@ ...@@ -428,15 +428,7 @@
}, },
fileTextTypePresent() { fileTextTypePresent() {
let found = false; return this.state.conflictsData.files.some(f => f.type === CONFLICT_TYPES.TEXT);
this.state.conflictsData.files.find((f) => {
if (f.type === CONFLICT_TYPES.TEXT) {
return found = true;
}
});
return found;
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment