MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / link

Function link

OpenReservation/wwwroot/Scripts/angular.js:6448–6453  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

6446 * bidirectionally links two entries of the LRU linked list
6447 */
6448 function link(nextEntry, prevEntry) {
6449 if (nextEntry != prevEntry) {
6450 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
6451 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
6452 }
6453 }
6454 }
6455
6456 /**

Callers 2

cacheFactoryFunction · 0.85
refreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected