Skip to content

Commit

Permalink
refactor: remove ifNot
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jun 2, 2016
1 parent a63e93a commit 9d189ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/router5.js
Expand Up @@ -3,9 +3,9 @@ import transition from './transition';
import constants from './constants';

const noop = () => {};
const ifNot = (condition, error) => {
if (!condition) throw new Error(error);
};
// const ifNot = (condition, error) => {
// if (!condition) throw new Error(error);
// };

const makeState = (name, params, path, _meta) => {
const state = {};
Expand Down

0 comments on commit 9d189ae

Please sign in to comment.