Skip to content

Commit

Permalink
Remove unused param from cloneRepository function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi Mikadze committed Oct 8, 2019
1 parent 1378188 commit 979b2f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/createSocialNetwork.js
Expand Up @@ -43,7 +43,7 @@ const createApp = () => {
validateAppName(projectName, program);

// Clone template from github
if (!cloneRepository(packageJson, projectName)) {
if (!cloneRepository(projectName)) {
console.log();
console.log(chalk.red('Error: Cloning of the repository failed.'));
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
@@ -1,6 +1,6 @@
{
"name": "create-social-network",
"version": "1.2.6",
"version": "1.2.7",
"description": "CLI for Create Social Network.",
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions lib/utils/cloneRepository.js
Expand Up @@ -14,10 +14,9 @@ const tryGitClone = (url, projectName) => {
/**
* Clones the create-social-network repository
*
* @param {obj} packageJson
* @param {string} projectName
*/
module.exports = (packageJson, projectName) => {
module.exports = projectName => {
const httpsUrl = 'https://github.com/udilia/create-social-network.git';
const sshUrl = 'git@github.com:udilia/create-social-network.git';
const root = path.resolve(projectName);
Expand Down

0 comments on commit 979b2f4

Please sign in to comment.