Merge pull request #214 from jamesgeorge007/feat/minor-refactor
chore: minor code refactor
This commit is contained in:
commit
2ac8a45446
1 changed files with 1 additions and 3 deletions
|
|
@ -97,9 +97,7 @@ function parseCurlCommand(curlCommand) {
|
|||
}
|
||||
parsedArguments.F.forEach(function(multipartArgument) {
|
||||
// input looks like key=value. value could be json or a file path prepended with an @
|
||||
let splitArguments = multipartArgument.split("=", 2);
|
||||
let key = splitArguments[0];
|
||||
let value = splitArguments[1];
|
||||
const [key, value] = multipartArgument.split("=", 2);
|
||||
multipartUploads[key] = value;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue