Skip to content

Commit 74e4dcb

Browse files
rm unused var
1 parent 16a9da1 commit 74e4dcb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/requestability_resolver.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,20 @@ class RequestabilityResolver {
3535
// items without barcodes should not be requestable
3636
const hasBarcode = (item.identifier || []).some((identifier) => /^(urn|bf):[bB]arcode:\w+/.test(identifier))
3737

38-
let physProcessed = false
3938
console.log({ itemIsInRecapMissingRecapCustomerCode, isItemNyplOwned: isItemNyplOwned(item), hasBarcode, requestableBasedOnHoldingLocation: DeliveryLocationsResolver.requestableBasedOnHoldingLocation(item), numDeliveryLocations })
4039
if (isItemNyplOwned(item) && !hasBarcode) {
41-
physProcessed = true
4240
physRequestable = false
4341
physRequestableCriteria = 'NYPL item missing barcode'
4442
logPhysRequestableInfo(physRequestable, physRequestableCriteria)
4543
return physRequestable
4644
}
4745
if (isItemNyplOwned(item) && !DeliveryLocationsResolver.requestableBasedOnHoldingLocation(item)) {
48-
physProcessed = true
4946
physRequestableCriteria = 'Unrequestable holding location'
5047
physRequestable = false
5148
logPhysRequestableInfo(physRequestable, physRequestableCriteria)
5249
return physRequestable
5350
}
5451
if (itemIsInRecapMissingRecapCustomerCode) {
55-
physProcessed = true
5652
// recap items missing codes should default to true for phys and edd
5753
// requestable, if it has a requestable holding location.
5854
physRequestable = true
@@ -61,14 +57,12 @@ class RequestabilityResolver {
6157
return physRequestable
6258
}
6359
if (numDeliveryLocations === 0) {
64-
physProcessed = true
6560
physRequestableCriteria = 'No delivery locations.'
6661
physRequestable = false
6762
logPhysRequestableInfo(physRequestable, physRequestableCriteria)
6863
return physRequestable
6964
}
7065
if (numDeliveryLocations > 0) {
71-
physProcessed = true
7266
physRequestableCriteria = `${numDeliveryLocations} delivery locations.`
7367
physRequestable = true
7468
logPhysRequestableInfo(physRequestable, physRequestableCriteria)

0 commit comments

Comments
 (0)