summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-08-17 08:38:23 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-08-17 08:38:23 -0600
commitc8df2c5f0612a7dbebf4154c9b1ac11c879c0561 (patch)
tree53020afcf731d30f931d4505082bd6396bc8870d
parent1d3aa59f99a72f613b84286eef948dfbad20925e (diff)
downloadgitlab-ce-c8df2c5f0612a7dbebf4154c9b1ac11c879c0561.tar.gz
Add return statements for if statements that were missing them.
-rw-r--r--app/assets/javascripts/diff_notes/components/resolve_btn.js.es64
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 () {