Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Nov 6, 2023
1 parent abf3c93 commit 3292d80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/helpers/validateAngularVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const { satisfies } = require('semver')
const validateAngularVersion = function ({ failBuild }) {
const version = getVersion('@angular/core')
if (!version || !satisfies(version, '>=17.0.0')) {
return failBuild(
`This site does not seem to be using Angular 17.`,
)
return failBuild(`This site does not seem to be using Angular 17.`)
}
}

Expand All @@ -15,7 +13,7 @@ const getVersion = function (packageName) {
// eslint-disable-next-line import/no-dynamic-require
const { version } = require(`${packageName}/package.json`)
return version
} catch(error) {
} catch (error) {
console.log(error)
}
}
Expand Down

0 comments on commit 3292d80

Please sign in to comment.