Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js

Issue 651403002: Fix trivial type-check errors in file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and correct a comment. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js b/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
index ca21d0929f2cbcac8275e66aeab9a90159600eda..415cf93f5c40da1129ea0f86c1c7099d2acf0195 100644
--- a/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
+++ b/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
@@ -271,7 +271,7 @@ FolderShortcutsDataModel.prototype = {
*
* @param {Entry} a First entry.
* @param {Entry} b Second entry.
- * @return {boolean} Returns -1, if |a| < |b|. Returns 0, if |a| === |b|.
+ * @return {number} Returns -1, if |a| < |b|. Returns 0, if |a| === |b|.
* Otherwise, returns 1.
*/
compare: function(a, b) {
@@ -493,7 +493,7 @@ FolderShortcutsDataModel.prototype = {
* for detail.
*
* @param {string} path Path in Drive with the stored drive mount path.
- * @return {string} URL of the given path.
+ * @return {?string} URL of the given path.
* @private
*/
convertStoredPathToUrl_: function(path) {
@@ -511,7 +511,7 @@ FolderShortcutsDataModel.prototype = {
* See the comment of convertStoredPathToUrl_() for further information.
*
* @param {string} url URL of the directory in Drive.
- * @return {string} Path with the stored drive mount path.
+ * @return {?string} Path with the stored drive mount path.
* @private
*/
convertUrlToStoredPath_: function(url) {

Powered by Google App Engine
This is Rietveld 408576698