Skip to content

Commit

Permalink
Update put.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-zucker authored May 24, 2024
1 parent 5e71231 commit d602ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/put.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function putStream (req, res, next, stream = req) {
// try {
// Obtain details of the target resource
let resourceExists = true
let returnStatus = 201;
let returnStatus = 201
try {
// First check if the file already exists
await ldp.resourceMapper.mapUrlToFile({ url: req })
Expand All @@ -71,7 +71,7 @@ async function putStream (req, res, next, stream = req) {
res.sendStatus(412)
return next()
}
returnStatus = 200;
returnStatus = 200
} catch (err) {
resourceExists = false
}
Expand Down

0 comments on commit d602ad8

Please sign in to comment.