fix: modernify code (#2068)
* fix: modernify code * standard fix * fixes
This commit is contained in:
committed by
GitHub
parent
c36e43eaa3
commit
e42a515199
@@ -82,7 +82,7 @@ function openTorrentFile () {
|
||||
const selectedPaths = dialog.showOpenDialogSync(windows.main.win, opts)
|
||||
resetTitle()
|
||||
if (!Array.isArray(selectedPaths)) return
|
||||
selectedPaths.forEach(function (selectedPath) {
|
||||
selectedPaths.forEach(selectedPath => {
|
||||
windows.main.dispatch('addTorrent', selectedPath)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user