Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Jun 24, 2017
1 parent 94ced2b commit 720106c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ export class Schema {
* https://github.com/frictionlessdata/tableschema-js#schema
*/
addField(descriptor) {
throw new Error('Not Implemented')
throw new Error('Not Implemented', descriptor)
}

/**
* Remove field from schema
* https://github.com/frictionlessdata/tableschema-js#schema
*/
removeField(descriptor) {
throw new Error('Not Implemented')
throw new Error('Not Implemented', descriptor)
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class Table {
, result = []
return new Promise((resolve, reject) => {
let index = 1
self.iter({cast, callback: items => {
const callback = items => {
if (!(limit && index > limit)) {
if (keyed) {
result.push(lodash.zipObject(headers, items))
Expand All @@ -99,10 +99,10 @@ export class Table {
} else {
result.push(items)
}

index += 1
}
}}).then(() => {
}
self.iter({cast, callback}).then(() => {
resolve(result)
}, errors => {
reject(errors)
Expand Down

0 comments on commit 720106c

Please sign in to comment.