Skip to content

Commit

Permalink
Removing unecessary intermediate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrachet committed Nov 30, 2020
1 parent 843fbe8 commit ef876d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/create-gatsby/src/install-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ export async function installPlugins(
rootPath: string,
packages: Array<string>
): Promise<void> {
let installPluginCommand
let gatsbyPath

try {
gatsbyPath = resolveGatsbyPath(rootPath)
installPluginCommand = resolveGatsbyCliPath(rootPath, gatsbyPath)
const gatsbyPath = resolveGatsbyPath(rootPath)
const installPluginCommand = resolveGatsbyCliPath(rootPath, gatsbyPath)

await addPluginsToProject(
installPluginCommand,
Expand Down

0 comments on commit ef876d4

Please sign in to comment.