Skip to content

Commit f261823

Browse files
committed
Fix code style
1 parent 4653eb6 commit f261823

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

JavaScript/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const http = require('node:http');
66
const cache = new Map();
77
const lib = './lib/';
88

9-
const cacheFile = path => {
9+
const cacheFile = (path) => {
1010
const filePath = lib + path;
1111
try {
1212
const libPath = require.resolve(filePath);
@@ -22,14 +22,14 @@ const cacheFile = path => {
2222
}
2323
};
2424

25-
const cacheFolder = path => {
25+
const cacheFolder = (path) => {
2626
fs.readdir(path, (err, files) => {
2727
if (err) return;
2828
files.forEach(cacheFile);
2929
});
3030
};
3131

32-
const watch = path => {
32+
const watch = (path) => {
3333
fs.watch(path, (event, file) => {
3434
cacheFile(file);
3535
});

0 commit comments

Comments
 (0)