pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/dsp-testing/NodeGoat/commit/b9e2c49cc951c7c3e8625bcdaa69a18be8ced45d

rigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-95af332f763e4560.css" /> Fix jshint warnings · dsp-testing/NodeGoat@b9e2c49 · GitHub
Skip to content

Commit b9e2c49

Browse files
committed
Fix jshint warnings
1 parent 812bfd7 commit b9e2c49

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/routes/research.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const ResearchDAO = require("../data/research-dao").ResearchDAO;
2-
const needle = require('needle');
2+
const needle = require("needle");
33
const {
44
environmentalScripts
55
} = require("../../config/config");
@@ -14,12 +14,13 @@ function ResearchHandler(db) {
1414
if (req.query.symbol) {
1515
const url = req.query.url + req.query.symbol;
1616
return needle.get(url, (error, newResponse) => {
17-
if (!error && newResponse.statusCode == 200)
17+
if (!error && newResponse.statusCode === 200) {
1818
res.writeHead(200, {
19-
'Content-Type': 'text/html'
19+
"Content-Type": "text/html"
2020
});
21-
res.write('<h1>The following is the stock information you requested.</h1>\n\n');
22-
res.write('\n\n');
21+
}
22+
res.write("<h1>The following is the stock information you requested.</h1>\n\n");
23+
res.write("\n\n");
2324
res.write(newResponse.body);
2425
return res.end();
2526
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy