Skip to content

Commit

Permalink
fix: delete useless argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 25, 2020
1 parent 7b1bdee commit e8fa9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function publish(code, title = null) {
}

async function main() {
const title = process.argv[3] || path.parse(process.argv[2], ".mp4").name;
const title = process.argv[3] || path.parse(process.argv[2]).name;
const tmpDir = path.resolve(__dirname, "tmp");
const file = path.resolve(process.argv[2]);
const command = await command_generator(file);
Expand Down

0 comments on commit e8fa9a8

Please sign in to comment.