Skip to content

Commit

Permalink
Update comment to make its intention clear Closes #2726
Browse files Browse the repository at this point in the history
  • Loading branch information
bmac committed Jun 4, 2015
1 parent c599728 commit a080db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-data/lib/transforms/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default Transform.extend({
} else if (type === "number") {
return new Date(serialized);
} else if (serialized === null || serialized === undefined) {
// if the value is not present in the data,
// return undefined, not null.
// if the value is null return null
// if the value is not present in the data return undefined
return serialized;
} else {
return null;
Expand Down

0 comments on commit a080db4

Please sign in to comment.