Skip to content

Commit bd9977f

Browse files
committed
More accurate function naming
1 parent c4a9e1e commit bd9977f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/acl-checker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class ACLChecker {
158158
return new ACLChecker(resource, {
159159
agentOrigin: req.get('origin'),
160160
// host: req.get('host'),
161-
fetch: fetchFromLdp(ldp.resourceMapper, ldp.serverUri),
161+
fetch: fetchLocalOrRemote(ldp.resourceMapper, ldp.serverUri),
162162
fetchGraph: (uri, options) => {
163163
// first try loading from local fs
164164
return ldp.getGraph(uri, options.contentType)
@@ -180,7 +180,7 @@ class ACLChecker {
180180
* - `callback(null, graph)` with the parsed RDF graph of the fetched resource
181181
* @return {Function} Returns a `fetch(uri, callback)` handler
182182
*/
183-
function fetchFromLdp (mapper, serverUri) {
183+
function fetchLocalOrRemote (mapper, serverUri) {
184184
return async function fetch (url, graph = rdf.graph()) {
185185
// Convert the URL into a filename
186186
let body, path, contentType

0 commit comments

Comments
 (0)