diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-08-17 17:38:23 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-08-17 17:38:23 +0300 |
commit | c8df2c5f0612a7dbebf4154c9b1ac11c879c0561 (patch) | |
tree | 53020afcf731d30f931d4505082bd6396bc8870d /app/assets/javascripts/diff_notes | |
parent | 1d3aa59f99a72f613b84286eef948dfbad20925e (diff) |
Add return statements for if statements that were missing them.
Diffstat (limited to 'app/assets/javascripts/diff_notes')
-rw-r--r-- | app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 b/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 index 26a29d10bdb..b465cd019dd 100644 --- a/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 +++ b/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 @@ -31,6 +31,8 @@ note: function () { if (this.discussion) { return this.discussion.getNote(this.noteId); + } else { + return undefined; } }, buttonText: function () { @@ -43,6 +45,8 @@ isResolved: function () { if (this.note) { return this.note.resolved; + } else { + return false; } }, resolvedByName: function () { |