style: fix inconsistent naming

We don't use "ID" anywhere else in the codebase.
This commit is contained in:
Feross Aboukhadijeh
2016-09-30 15:40:06 -07:00
committed by DC
parent f1ef9daa8f
commit 428a07101a
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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)