Skip to content

Commit d602ad8

Browse files
authored
Update put.js
1 parent 5e71231 commit d602ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/handlers/put.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function putStream (req, res, next, stream = req) {
6262
// try {
6363
// Obtain details of the target resource
6464
let resourceExists = true
65-
let returnStatus = 201;
65+
let returnStatus = 201
6666
try {
6767
// First check if the file already exists
6868
await ldp.resourceMapper.mapUrlToFile({ url: req })
@@ -71,7 +71,7 @@ async function putStream (req, res, next, stream = req) {
7171
res.sendStatus(412)
7272
return next()
7373
}
74-
returnStatus = 200;
74+
returnStatus = 200
7575
} catch (err) {
7676
resourceExists = false
7777
}

0 commit comments

Comments
 (0)