Skip to content

Commit

Permalink
refactor: unify style of function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed May 24, 2018
1 parent 802de2f commit fdd46e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const spawn = require('cross-spawn')
const parseHeaders = require('./parseHeaders')

exports.encodePath = function (path) {
exports.encodePath = path => {
return path.split('/').map(item => encodeURIComponent(item)).join('/')
}

Expand All @@ -20,7 +20,7 @@ exports.normalizeHeadTag = tag => {
}
}

exports.applyUserWebpackConfig = function (userConfig, config, isServer) {
exports.applyUserWebpackConfig = (userConfig, config, isServer) => {
const merge = require('webpack-merge')
if (typeof userConfig === 'object') {
return merge(config, userConfig)
Expand All @@ -34,7 +34,7 @@ exports.applyUserWebpackConfig = function (userConfig, config, isServer) {
return config
}

exports.inferTitle = function (frontmatter) {
exports.inferTitle = frontmatter => {
if (frontmatter.data.home) {
return 'Home'
}
Expand Down

0 comments on commit fdd46e0

Please sign in to comment.