Skip to content

Commit a7b5e6d

Browse files
committed
Resolve linting errors due to ResourceMapper changes
1 parent 19843ac commit a7b5e6d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/handlers/patch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function patchHandler (req, res, next) {
2626
try {
2727
// Obtain details of the target resource
2828
const ldp = req.app.locals.ldp
29-
let path, contentType;
29+
let path, contentType
3030
try {
3131
// First check if the file already exists
3232
({ path, contentType } = await ldp.resourceMapper.mapUrlToFile({ url: req }))

lib/resource-mapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ResourceMapper {
7777
// unless the URL ends with a '/',
7878
// in that case we fallback to the folder itself.
7979
if (isIndex) {
80-
match = '';
80+
match = ''
8181
} else {
8282
throw new Error(`File not found: ${fullPath}`)
8383
}

test/integration/ldp-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ describe('LDP', function () {
137137
})
138138
})
139139

140-
141140
it.skip('with a larger file to exceed allowed quota', function () {
142141
var randstream = stringToStream(randomBytes(2100))
143142
return ldp.put('localhost', '/resources/testQuota.txt', randstream).catch((err) => {

0 commit comments

Comments
 (0)