Skip to content

Commit

Permalink
format source
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jun 11, 2020
1 parent 828430b commit 35e9137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions gulp.d/tasks/lint-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@ const eslint = require('gulp-eslint')
const vfs = require('vinyl-fs')

module.exports = (files) => (done) =>
vfs
.src(files)
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError())
.on('error', done)
vfs.src(files).pipe(eslint()).pipe(eslint.format()).pipe(eslint.failAfterError()).on('error', done)
2 changes: 1 addition & 1 deletion src/helpers/canonical-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = ({ data: { root } }) => {
const { contentCatalog, env, page, site } = root
const siteUrl = site.url
if (!siteUrl || siteUrl.charAt() === '/') return
let { url, version, missing } = page.versions ? (page.latest || { url: page.url }) : page
let { url, version, missing } = page.versions ? page.latest || { url: page.url } : page
const latestVersion = version
if (missing) {
const family = 'alias'
Expand Down

0 comments on commit 35e9137

Please sign in to comment.