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