Use object shorthand for properties

This commit is contained in:
Linus Unnebäck
2020-04-26 15:14:36 +01:00
parent cf0cf79440
commit 81b3d64f42
12 changed files with 25 additions and 25 deletions

View File

@@ -55,7 +55,7 @@ module.exports = class TorrentListController {
if (files.length === 0 || typeof files[0] !== 'string') {
this.state.location.go({
url: 'create-torrent',
files: files,
files,
setup: (cb) => {
this.state.window.title = 'Create New Torrent'
cb(null)