Skip to content

Commit

Permalink
Tidy up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-eb committed Sep 12, 2016
1 parent fa9b9a6 commit 8b6f4da
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/generators/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@ function dataString (config, candidate) {
);
config.repeatingConditions.push(
ifAnyTruthy([
// allTruthy(
// evenIdentifier,
// allTruthy(
// // notCallExpression(camel, nodeIdentifier),
// notCallExpression('isVariable', nodeIdentifier)
// ),
// ),
allTruthy(
t.unaryExpression('!', evenIdentifier),
notCallExpression(method, nodeIdentifier)
Expand Down Expand Up @@ -319,13 +312,9 @@ function createValidator (opts) {
return list;
}, []);

let body = [];

if (settings.preConditions.length) {
body = [
...settings.preConditions,
];
}
let body = [
...settings.preConditions,
];

if (settings.repeatingConditions.length) {
/*
Expand Down

0 comments on commit 8b6f4da

Please sign in to comment.