Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary Line of Code #9

Open
mgovilla opened this issue Aug 26, 2021 · 0 comments
Open

Unnecessary Line of Code #9

mgovilla opened this issue Aug 26, 2021 · 0 comments

Comments

@mgovilla
Copy link

mgovilla commented Aug 26, 2021

In server.js there is an unnecessary line of code at 22:

const sendFile = function( response, filename ) {
fs.readFile( filename, function( err, content ) {
file = content
response.end( content, 'utf-8' )
})
}

file is not used again after this assignment which makes it safe to delete

Pull Request: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant