Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore; let tslint allow double equals when comparing IDs of different…
Browse files Browse the repository at this point in the history
… types (#91)
  • Loading branch information
wheelerlaw authored and wardbell committed Jan 17, 2017
1 parent 92bebf3 commit 6e8d047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/in-memory-backend.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ export class InMemoryBackendService {
if (item.id == undefined) {
return createErrorResponse(req, STATUS.NOT_FOUND, `Missing '${collectionName}' id`);
}
if (id !== item.id) {
// tslint:disable-next-line:triple-equals
if (id != item.id) {
return createErrorResponse(req, STATUS.BAD_REQUEST, `"${collectionName}" id does not match item.id`);
}
const existingIx = this.indexOf(collection, id);
Expand Down

0 comments on commit 6e8d047

Please sign in to comment.