Skip to content

Commit 4d36f45

Browse files
committed
Add comment to explain code
1 parent 48f9e1a commit 4d36f45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lesson03/exercise_004/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function handleStaticFile(pathname, response) {
3434
return handleNotFound(response);
3535
}
3636

37+
// Check if file exists and is readable
3738
fs.access(fullPath, fs.constants.R_OK, (error) => {
3839
if (error) {
3940
console.error(`File is not readable: ${fullPath}`, error);

0 commit comments

Comments
 (0)