Skip to content

Commit

Permalink
fix ignore logs
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed May 6, 2020
1 parent 61ca038 commit e9782d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/electron/git-log.hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ignoreLines = [
"Warning: Using UNSAFE_componentWillMount",
"Warning: validateDOMNesting(...)",
"Warning: A future version of React will block javascript",
"Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended",
"Warning: Using UNSAFE_componentWillReceiveProps",
"Warning: Legacy context API has been detected within a strict-mode tree",
"Download the React DevTools for a better development experience",
"[HMR] Waiting for update signal from WDS...",
Expand All @@ -20,8 +20,8 @@ const hasIgnores = (line) => {
return (
line &&
line.includes &&
ignoreLines.toLowerCase &&
ignoreLines.toLowerCase().find((s) => line.includes(s))
line.toLowerCase &&
ignoreLines.find((s) => line.toLowerCase().includes(s.toLowerCase()))
);
};

Expand Down

0 comments on commit e9782d0

Please sign in to comment.