Skip to content

Commit

Permalink
[squash] remove unnecessary try
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrobots committed Jun 23, 2018
1 parent 53921af commit e98cc1d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,8 @@ export async function init(options: Options): Promise<boolean> {
return false;
}

try {
packageJson = DEFUALT_PACKAGE_JSON;
generatedPackageJson = true;
} catch (err2) {
throw err2;
}
packageJson = DEFUALT_PACKAGE_JSON;
generatedPackageJson = true;
}

const addedDeps = await addDependencies(packageJson, options);
Expand Down

0 comments on commit e98cc1d

Please sign in to comment.