Skip to content

Commit

Permalink
Improve code in example
Browse files Browse the repository at this point in the history
  • Loading branch information
knicklabs committed Sep 12, 2018
1 parent 6b9e0af commit 791c801
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ const FormView = Marionette.View.extend({
let title;
if (name && email) {
title = `${name} (${email})`;
} else if (name) {
title = name;
} else if (email) {
title = email;
} else if (name || email) {
title = name || email;
} else {
title = "Unknown Person";
}
Expand Down

0 comments on commit 791c801

Please sign in to comment.