refactor: remove unnecessary object destructuring

This commit is contained in:
Pierre Vanduynslager
2018-07-10 13:18:58 -04:00
parent 5989989452
commit 50061bb267
3 changed files with 8 additions and 15 deletions
+1 -4
View File
@@ -35,10 +35,7 @@ module.exports = async ({repositoryUrl, branch}) => {
// Replace `git+https` and `git+http` with `https` or `http`
if (protocols.includes('http') || protocols.includes('https')) {
repositoryUrl = format({
...parse(repositoryUrl),
...{protocol: protocols.includes('https') ? 'https' : 'http'},
});
repositoryUrl = format({...parse(repositoryUrl), protocol: protocols.includes('https') ? 'https' : 'http'});
}
}