From bdde16014dec25215a09dd156a6ead418c49053e Mon Sep 17 00:00:00 2001 From: lameze Date: Wed, 31 Oct 2018 09:02:06 -0400 Subject: [PATCH] MDL-63064 block_starredcourses: fix linting issues --- blocks/starredcourses/amd/src/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/starredcourses/amd/src/main.js b/blocks/starredcourses/amd/src/main.js index 93428faa802..1c51cbeb5d3 100644 --- a/blocks/starredcourses/amd/src/main.js +++ b/blocks/starredcourses/amd/src/main.js @@ -51,7 +51,7 @@ function( * @method renderCourses * @param {object} root The root element for the starred view. * @param {array} courses containing array of returned courses. - * @return {promise} Resolved with HTML and JS strings + * @returns {promise} Resolved with HTML and JS strings */ var renderCourses = function(root, courses) { if (courses.length > 0) { @@ -59,7 +59,7 @@ function( courses: courses }); } else { - var nocoursesimg =root.find(SELECTORS.STARRED_COURSES_REGION_VIEW).attr('data-nocoursesimg'); + var nocoursesimg = root.find(SELECTORS.STARRED_COURSES_REGION_VIEW).attr('data-nocoursesimg'); return Templates.render('block_starredcourses/no-courses', { nocoursesimg: nocoursesimg }); @@ -70,6 +70,7 @@ function( * Fetch user's starred courses and reload the content of the block. * * @param {object} root The root element for the starred view. + * @returns {promise} The updated content for the block. */ var reloadContent = function(root) { var content = root.find(SELECTORS.STARRED_COURSES_REGION); -- 2.11.4.GIT