Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-08-17 17:38:23 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-08-17 17:38:23 +0300
commitc8df2c5f0612a7dbebf4154c9b1ac11c879c0561 (patch)
tree53020afcf731d30f931d4505082bd6396bc8870d /app/assets/javascripts/diff_notes
parent1d3aa59f99a72f613b84286eef948dfbad20925e (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.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 () {