Merge pull request #7074 from nextcloud/use-proper-whitespace

Use proper whitespace
This commit is contained in:
Christoph Wurst 2017-11-06 10:27:09 +01:00 committed by GitHub
commit d4f83d505a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@
*/ */
isFileNameValid: function (name) { isFileNameValid: function (name) {
var trimmedName = name.trim(); var trimmedName = name.trim();
if (trimmedName === '.' || trimmedName === '..') if (trimmedName === '.' || trimmedName === '..')
{ {
throw t('files', '"{name}" is an invalid file name.', {name: name}); throw t('files', '"{name}" is an invalid file name.', {name: name});
} else if (trimmedName.length === 0) { } else if (trimmedName.length === 0) {