Skip to content

Commit 10afc9d

Browse files
author
Dan McGhan
committed
Removed trailing whitespace and added trailing carriage returns to all files
1 parent 1519a7e commit 10afc9d

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
port: process.env.HTTP_PORT || 3000
3-
};
3+
};

javascript/rest-api/part-1-web-server-basics/hr_app/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function startup() {
66
try {
77
console.log('Starting web server');
88

9-
await webServer.start();
9+
await webServer.start();
1010
} catch (err) {
1111
console.error(err);
1212

@@ -18,7 +18,7 @@ startup();
1818

1919
async function shutdown(e) {
2020
let err = e;
21-
21+
2222
console.log('Shutting down');
2323

2424
try {
@@ -57,4 +57,4 @@ process.on('uncaughtException', err => {
5757
console.error(err);
5858

5959
shutdown(err);
60-
});
60+
});

javascript/rest-api/part-1-web-server-basics/hr_app/services/web-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function start() {
1212

1313
// Combines logging info from request and response
1414
app.use(morgan('combined'));
15-
15+
1616
app.get('/', (req, res) => {
1717
res.end('Hello World!');
1818
});
@@ -47,4 +47,4 @@ function stop() {
4747
});
4848
}
4949

50-
module.exports.stop = stop;
50+
module.exports.stop = stop;

javascript/rest-api/part-2-database-basics/hr_app/config/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ module.exports = {
77
poolMax: 10,
88
poolIncrement: 0
99
}
10-
};
10+
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
port: process.env.HTTP_PORT || 3000
3-
};
3+
};

javascript/rest-api/part-2-database-basics/hr_app/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function startup() {
1212
try {
1313
console.log('Initializing database module');
1414

15-
await database.initialize();
15+
await database.initialize();
1616
} catch (err) {
1717
console.error(err);
1818

@@ -22,7 +22,7 @@ async function startup() {
2222
try {
2323
console.log('Starting web server');
2424

25-
await webServer.start();
25+
await webServer.start();
2626
} catch (err) {
2727
console.error(err);
2828

@@ -34,7 +34,7 @@ startup();
3434

3535
async function shutdown(e) {
3636
let err = e;
37-
37+
3838
console.log('Shutting down application');
3939

4040
try {
@@ -50,7 +50,7 @@ async function shutdown(e) {
5050
try {
5151
console.log('Closing database module');
5252

53-
await database.close();
53+
await database.close();
5454
} catch (e) {
5555
console.error(e);
5656

0 commit comments

Comments
 (0)