style: fix inconsistent naming
We don't use "ID" anywhere else in the codebase.
This commit is contained in:
@@ -101,7 +101,7 @@ module.exports = class TorrentListController {
|
|||||||
function start () {
|
function start () {
|
||||||
ipcRenderer.send('wt-start-torrenting',
|
ipcRenderer.send('wt-start-torrenting',
|
||||||
s.torrentKey,
|
s.torrentKey,
|
||||||
TorrentSummary.getTorrentID(s),
|
TorrentSummary.getTorrentId(s),
|
||||||
s.path,
|
s.path,
|
||||||
s.fileModtimes,
|
s.fileModtimes,
|
||||||
s.selections)
|
s.selections)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ module.exports = {
|
|||||||
getPosterPath,
|
getPosterPath,
|
||||||
getTorrentPath,
|
getTorrentPath,
|
||||||
getByKey,
|
getByKey,
|
||||||
getTorrentID,
|
getTorrentId,
|
||||||
getFileOrFolder
|
getFileOrFolder
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ function getPosterPath (torrentSummary) {
|
|||||||
|
|
||||||
// Expects a torrentSummary
|
// Expects a torrentSummary
|
||||||
// Returns a torrentID: filename, magnet URI, or infohash
|
// Returns a torrentID: filename, magnet URI, or infohash
|
||||||
function getTorrentID (torrentSummary) {
|
function getTorrentId (torrentSummary) {
|
||||||
const s = torrentSummary
|
const s = torrentSummary
|
||||||
if (s.torrentFileName) { // Load torrent file from disk
|
if (s.torrentFileName) { // Load torrent file from disk
|
||||||
return getTorrentPath(s)
|
return getTorrentPath(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user