Skip to content

Commit fdd46e0

Browse files
committed
refactor: unify style of function.
1 parent 802de2f commit fdd46e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/util/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const spawn = require('cross-spawn')
22
const parseHeaders = require('./parseHeaders')
33

4-
exports.encodePath = function (path) {
4+
exports.encodePath = path => {
55
return path.split('/').map(item => encodeURIComponent(item)).join('/')
66
}
77

@@ -20,7 +20,7 @@ exports.normalizeHeadTag = tag => {
2020
}
2121
}
2222

23-
exports.applyUserWebpackConfig = function (userConfig, config, isServer) {
23+
exports.applyUserWebpackConfig = (userConfig, config, isServer) => {
2424
const merge = require('webpack-merge')
2525
if (typeof userConfig === 'object') {
2626
return merge(config, userConfig)
@@ -34,7 +34,7 @@ exports.applyUserWebpackConfig = function (userConfig, config, isServer) {
3434
return config
3535
}
3636

37-
exports.inferTitle = function (frontmatter) {
37+
exports.inferTitle = frontmatter => {
3838
if (frontmatter.data.home) {
3939
return 'Home'
4040
}

0 commit comments

Comments
 (0)