Skip to content

Commit 3e3b547

Browse files
author
Maledong
authored
chore: Use ES6 to write functions (#2185)
Use ES6 to write functions for 'm.read' and 'Object.keys.forEach' in 'build.js'.
1 parent f3be19b commit 3e3b547

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ function withPreserveLocale (preserveLocale) {
178178
return (files, m, next) => {
179179
if (preserveLocale) {
180180
var path = m.path('locale/en')
181-
m.read(path, function (err, newfiles) {
181+
m.read(path, (err, newfiles) => {
182182
if (err) {
183183
console.error(err)
184184
return next(err)
185185
}
186186

187-
Object.keys(newfiles).forEach(function (key) {
187+
Object.keys(newfiles).forEach((key) => {
188188
if (!files[key]) {
189189
files[key] = newfiles[key]
190190
}

0 commit comments

Comments
 (0)