TASK22269: prune touched azurestorage unused locals
This commit is contained in:
@@ -269,9 +269,6 @@ export const getBlobs = async (containerName, casefolderID) => {
|
||||
})) {
|
||||
const blobPathParts = blob.name.split("/");
|
||||
const fileName = blobPathParts[2];
|
||||
let blobDocumentType = blob.name
|
||||
.split("/")[2]
|
||||
.slice(0, blob.name.split("/")[2].indexOf("_"));
|
||||
|
||||
blobObj.push({
|
||||
"name": fileName,
|
||||
@@ -1479,9 +1476,6 @@ export const getRepsFilesBlobs = async (
|
||||
const blobPathParts = blob.name.split("/");
|
||||
const casefolderPath = blobPathParts[0] + "/" + blobPathParts[1];
|
||||
const repFileName = blobPathParts[3];
|
||||
let blobDocumentType = blob.name
|
||||
.split("/")[2]
|
||||
.slice(0, blob.name.split("/")[2].indexOf("_"));
|
||||
|
||||
consoleLogger(blob.name);
|
||||
|
||||
|
||||
@@ -3071,3 +3071,32 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: prune currently-unused local `blobDocumentType` variables in the same touched functions (readability-only, no behavior change).
|
||||
|
||||
---
|
||||
|
||||
### CL-086: TASK22269 Slice B1.11 — azurestorage touched-function unused-local prune
|
||||
|
||||
date: 2026-03-26
|
||||
author: Cline
|
||||
scope: `actions/azurestorage.js`
|
||||
type: change
|
||||
rationale: Execute the next bounded readability-only slice by removing now-unused local variables left in recently touched helper-consumer functions.
|
||||
impact: Maintainability/readability improvement only; no API/route behavior changes.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Removed unused local `blobDocumentType` declarations from:
|
||||
- `getBlobs`
|
||||
- `getRepsFilesBlobs`
|
||||
- No object shape, query generation, hash metadata logic, or routing behavior changed.
|
||||
|
||||
Validation:
|
||||
|
||||
- `npm run lint` -> pass with warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
|
||||
- `node tests/phase22/index.test.cjs` -> pass
|
||||
- `node tests/phase7/service-behaviour.test.cjs` -> pass (13/13)
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: align remaining low-risk direct `console.log` calls in these functions to `consoleLogger` only where already touched and safe.
|
||||
|
||||
Reference in New Issue
Block a user