From 428a07101acc045594bc1cea2d4b8591eea0b82b Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 30 Sep 2016 15:40:06 -0700 Subject: [PATCH] style: fix inconsistent naming We don't use "ID" anywhere else in the codebase. --- src/renderer/controllers/torrent-list-controller.js | 2 +- src/renderer/lib/torrent-summary.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/controllers/torrent-list-controller.js b/src/renderer/controllers/torrent-list-controller.js index 1bb8ac71..89a13d7b 100644 --- a/src/renderer/controllers/torrent-list-controller.js +++ b/src/renderer/controllers/torrent-list-controller.js @@ -101,7 +101,7 @@ module.exports = class TorrentListController { function start () { ipcRenderer.send('wt-start-torrenting', s.torrentKey, - TorrentSummary.getTorrentID(s), + TorrentSummary.getTorrentId(s), s.path, s.fileModtimes, s.selections) diff --git a/src/renderer/lib/torrent-summary.js b/src/renderer/lib/torrent-summary.js index 2e4866d4..dadc628a 100644 --- a/src/renderer/lib/torrent-summary.js +++ b/src/renderer/lib/torrent-summary.js @@ -2,7 +2,7 @@ module.exports = { getPosterPath, getTorrentPath, getByKey, - getTorrentID, + getTorrentId, getFileOrFolder } @@ -28,7 +28,7 @@ function getPosterPath (torrentSummary) { // Expects a torrentSummary // Returns a torrentID: filename, magnet URI, or infohash -function getTorrentID (torrentSummary) { +function getTorrentId (torrentSummary) { const s = torrentSummary if (s.torrentFileName) { // Load torrent file from disk return getTorrentPath(s)