Skip to content

Commit

Permalink
eliminate unneeded conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 11, 2018
1 parent 6cd8729 commit 7e8b6a2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions editor/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,11 @@ export function isPostAutosavable( state ) {
const autosave = state.editor.present.autosave;

// If the title, excerpt or content has changed, the post is autosavable.
if (
return (
( title !== autosave.title.raw ) ||
( excerpt !== autosave.excerpt.raw ) ||
( content !== autosave.content.raw )
) {
return true;
}

return false;
);
}

export function hasAutosave( state ) {
Expand Down

0 comments on commit 7e8b6a2

Please sign in to comment.