Skip to content

Commit

Permalink
chore(valid): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmeinke committed Mar 25, 2017
1 parent 713b199 commit 3395364
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getErrors = shape => {

if (shape.type === 'g' && Array.isArray(shape.shapes)) {
const childErrors = shape.shapes.map(s => getErrors(s))
return [].concat.apply([], [ errors, ...childErrors ])
return [].concat.apply(errors, childErrors)
}

return errors
Expand Down
1 change: 0 additions & 1 deletion test/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ test('should be valid when circle passed correct props', () => {
expect(result.errors).toHaveLength(0)
})


test('should be valid when complex shape passed correct props', () => {
const shape = {
type: 'g',
Expand Down

0 comments on commit 3395364

Please sign in to comment.