Skip to content

Commit

Permalink
Make lint prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Dec 22, 2017
1 parent b9c7e82 commit f6f6be2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -29,17 +29,17 @@ export function explainData(spec, value) {
export function problemStr(problem) {
let str = `${problem.via.join(" → ")}: ${
problem.predicateName
} failed for ${JSON.stringify(get(problem.value, problem.path, problem.value))}`;
} failed for ${JSON.stringify(
get(problem.value, problem.path, problem.value)
)}`;
if (problem.path.length > 0) {
str += ` at [${problem.path.join(", ")}]`;
}
return str + ".";
}

export function explain(spec, value) {
explainData(spec, value).forEach(
problem => console.log(problemStr(problem))
);
explainData(spec, value).forEach(problem => console.log(problemStr(problem))); // eslint-disable-line no-console
}

export function explainStr(spec, value) {
Expand Down

0 comments on commit f6f6be2

Please sign in to comment.