Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Dec 14, 2016
1 parent 1ee49af commit 6ce00ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/public/courier/saved_object/saved_object_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ export class SavedObjectLoader {
*/
get(id) {
return (new this.Class(id)).init();
};
}

urlFor(id) {
return this.kbnUrl.eval(`#/${this.lowercaseType}/{{id}}`, {id: id});
};
}

delete(ids) {
ids = !_.isArray(ids) ? [ids] : ids;
return Promise.map(ids, (id) => {
return (new this.Class(id)).delete();
});
};
}

/**
* Updates hit._source to contain an id and url field, and returns the updated
Expand All @@ -55,14 +55,14 @@ export class SavedObjectLoader {
source.id = hit._id;
source.url = this.urlFor(hit._id);
return source;
};
}

scanAll(queryString, pageSize = 1000) {
return this.scanner.scanAndMap(queryString, {
pageSize,
docCount: Infinity
}, (hit) => this.mapHits(hit));
};
}

/**
* TODO: Rather than use a hardcoded limit, implement pagination. See
Expand Down Expand Up @@ -100,5 +100,5 @@ export class SavedObjectLoader {
hits: resp.hits.hits.map((hit) => this.mapHits(hit))
};
});
};
}
}

0 comments on commit 6ce00ba

Please sign in to comment.