mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
WebUI: enforce string quotes coding style
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
// This file is the JavaScript implementation of base/utils/fs.cpp
|
||||
|
||||
@@ -44,15 +44,15 @@ window.qBittorrent.Filesystem = (function() {
|
||||
};
|
||||
};
|
||||
|
||||
const PathSeparator = '/';
|
||||
const PathSeparator = "/";
|
||||
|
||||
/**
|
||||
* Returns the file extension part of a file name.
|
||||
*/
|
||||
const fileExtension = function(filename) {
|
||||
const pointIndex = filename.lastIndexOf('.');
|
||||
const pointIndex = filename.lastIndexOf(".");
|
||||
if (pointIndex === -1)
|
||||
return '';
|
||||
return "";
|
||||
return filename.substring(pointIndex + 1);
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@ window.qBittorrent.Filesystem = (function() {
|
||||
const folderName = function(filepath) {
|
||||
const slashIndex = filepath.lastIndexOf(PathSeparator);
|
||||
if (slashIndex === -1)
|
||||
return '';
|
||||
return "";
|
||||
return filepath.substring(0, slashIndex);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user