tenseleyflow/documentlanguagemodel / 66462c5

Browse files

Drop dead just_scaffolded variable left over from B12.1 fix

B12.1 removed the gate that read this flag; the assignments became unreachable. Ruff F841 caught it on PR #8 CI.
Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
66462c55cded5541d981d6732c128e4c7c618155
Parents
57eef3f
Tree
3b97de6

1 changed file

StatusFile+-
M src/dlm/cli/commands.py 1 3
src/dlm/cli/commands.pymodified
@@ -808,7 +808,6 @@ def train_cmd(
808808
     # Directory targets auto-scaffold `<dir>/.dlm/corpus.dlm` (or
809809
     # reuse an existing one). After this block, `path` always points
810810
     # at an actual `.dlm` file that the rest of the flow can parse.
811
-    just_scaffolded = False
812811
     if path.is_dir():
813812
         from dlm.cli.scaffold import ScaffoldError, scaffold_train_target
814813
 
@@ -832,7 +831,6 @@ def train_cmd(
832831
                 f"[cyan]scaffolded:[/cyan] {scaffold_result.dlm_path} "
833832
                 f"(dlm_id={scaffold_result.dlm_id})"
834833
             )
835
-            just_scaffolded = True
836834
         path = scaffold_result.dlm_path
837835
 
838836
     try:
@@ -882,7 +880,7 @@ def train_cmd(
882880
     # `dlm init` writes a manifest as part of store provisioning. Mirror
883881
     # that manifest write here when the store layout exists but has no
884882
     # manifest yet — covers two flows:
885
-    #   - auto-scaffold via `dlm train <dir>` (just_scaffolded path)
883
+    #   - auto-scaffold via `dlm train <dir>` on a fresh directory
886884
     #   - hand-authored .dlm with a fresh ULID that never went through
887885
     #     `dlm init` (e.g. authored via the LSP / VSCode extension)
888886
     # License acceptance has already been validated upstream by this