Skip to content

Commit 138a138

Browse files
committed
Re-spell if-ladder
This patch rearranges evalaution components to assist in understanding if-ladder coverage. No effects were observed on Make-managed files. Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 3019794 commit 138a138

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

case_mapping/base.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ def _append_stuff(self, key, *args, refs=False, objects=False):
6161
if len(args) == 1 and not args[0]: # True if no objects to append provided
6262
pass
6363
else:
64-
if len(args) and self.get(key) is None:
65-
self[key] = list()
66-
elif len(args) and isinstance(
67-
self[key], dict
68-
): # if single ref add it to list
69-
self[key] = [self[key]]
64+
if len(args):
65+
if self.get(key) is None:
66+
self[key] = list()
67+
elif isinstance(self[key], dict): # if single ref add it to list
68+
self[key] = [self[key]]
7069
for item in args:
7170
if isinstance(item, UcoThing):
7271
if refs:

0 commit comments

Comments
 (0)