Skip to content

Commit 64e7adc

Browse files
committed
homogenize function types
1 parent a87c2a3 commit 64e7adc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

0-base/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44

55
app.use(express.static('public'));
66

7-
app.get('/', function(req, res) {
7+
app.get('/', (req, res) => {
88
res.sendFile(path.join(__dirname + '/index.html'));
99
});
1010

1-measured/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
1515
app.set('views', __dirname + '/views');
1616
app.use(express.static('public'));
1717

18-
app.get('/', function(req, res) {
18+
app.get('/', (req, res) => {
1919
res.render('index.mustache', {
2020
time: timeSince,
2121
});

2-optimized-dockerfile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
1515
app.set('views', __dirname + '/views');
1616
app.use(express.static('public'));
1717

18-
app.get('/', function(req, res) {
18+
app.get('/', (req, res) => {
1919
res.render('index.mustache', {
2020
time: timeSince,
2121
});

3-recommended/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
1515
app.set('views', __dirname + '/views');
1616
app.use(express.static('public'));
1717

18-
app.get('/', function(req, res) {
18+
app.get('/', (req, res) => {
1919
res.render('index.mustache', {
2020
time: timeSince,
2121
});

0 commit comments

Comments
 (0)