@@ -251,7 +251,7 @@ var NodeGoogleDrive = function(options) {
251251 * explicitly set
252252 * @param {boolean } includeRemoved Either to include removed files in the
253253 * listing. Defaults to false
254- * @param {string } fields - the partial fields that should be selected
254+ * @param {string } fields - the partial fields that should be selected
255255 * @return {Array<google.drive.files#resource> } array of file resources results
256256 */
257257NodeGoogleDrive . prototype . listFiles = function (
@@ -268,7 +268,9 @@ NodeGoogleDrive.prototype.listFiles = function(
268268 includeRemoved : ! ! includeRemoved ,
269269 spaces : 'drive' ,
270270 pageSize : 100 ,
271- fields : fields || 'nextPageToken, files(id, name, parents, mimeType, modifiedTime)'
271+ fields :
272+ fields ||
273+ 'nextPageToken, files(id, name, parents, mimeType, modifiedTime)'
272274 } ;
273275
274276 // If pageToken is set, then request the next page of file list
@@ -406,7 +408,7 @@ NodeGoogleDrive.prototype.getFile = function(file, destinationFolder) {
406408 * subfolders. Works only when parentFolder is
407409 * explicitly set
408410 * @param {boolean } includeRemoved - either to list removed folders or not
409- * @param {string } fields - the partial fields that should be selected
411+ * @param {string } fields - the partial fields that should be selected
410412 * @return {Array<google.drive.files#resource> } array of folder resources results
411413 */
412414NodeGoogleDrive . prototype . listFolders = function (
@@ -423,7 +425,9 @@ NodeGoogleDrive.prototype.listFolders = function(
423425 includeRemoved : ! ! includeRemoved ,
424426 spaces : 'drive' ,
425427 pageSize : 100 ,
426- fields : fields || 'nextPageToken, files(id, name, parents, mimeType, modifiedTime)'
428+ fields :
429+ fields ||
430+ 'nextPageToken, files(id, name, parents, mimeType, modifiedTime)'
427431 } ;
428432
429433 // If pageToken is set, then request the next page of file list
0 commit comments