Commit c9f74e9a authored by Sean Hammond's avatar Sean Hammond

Simplify a boolean return

parent 77d7008e
......@@ -100,11 +100,7 @@ function isReply(domainModel) {
* saved to the server yet.
*/
function isNew(domainModel) {
if (domainModel.id) {
return false;
} else {
return true;
}
return !domainModel.id;
}
/** Restore unsaved changes to this annotation from the drafts service.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment