Skip to content

Commit 11610cb

Browse files
thonatosJacksonTian
authored andcommitted
refactor: use arrow func
1 parent 1b02da5 commit 11610cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controller/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class HomeController extends Controller {
113113
let sitemapData = await this.service.cache.get('sitemap');
114114
if (!sitemapData) {
115115
const topics = await this.service.topic.getLimit5w();
116-
topics.forEach(function(topic) {
116+
topics.forEach(topic => {
117117
urlset.ele('url').ele('loc', 'http://cnodejs.org/topic/' + topic._id);
118118
});
119119
sitemapData = urlset.end();

0 commit comments

Comments
 (0)