Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b4515d3

Browse files
committed
Adds periods on HTTP responses.
1 parent cfaf4bb commit b4515d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http-api/resources/files.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports = module.exports
1212
exports.add = {
1313
handler: (request, reply) => {
1414
if (!request.payload) {
15-
return reply('Array, Buffer, or String is required').code(400).takeover()
15+
return reply('Array, Buffer, or String is required.').code(400).takeover()
1616
}
1717

1818
const parser = multipart.reqParser(request.payload)
@@ -37,7 +37,7 @@ exports.add = {
3737
fileAdder.on('end', () => {
3838
if (written === 0 && file) {
3939
return reply({
40-
Message: 'Failed to add files',
40+
Message: 'Failed to add files.',
4141
Code: 0
4242
}).code(500)
4343
} else {
@@ -59,7 +59,7 @@ exports.add = {
5959

6060
parser.on('end', () => {
6161
if (!file) {
62-
return reply("File argument 'data' is required").code(400).takeover()
62+
return reply("File argument 'data' is required.").code(400).takeover()
6363
}
6464
fileAdder.end()
6565
})

0 commit comments

Comments
 (0)