Skip to content

Commit c478a6e

Browse files
committed
remove irrelevant code
1 parent 829c700 commit c478a6e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

janitor/functions/summarize.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,16 @@ def summarize(
113113
args_to_process = []
114114
for num, arg in enumerate(args):
115115
check(f"Argument {num} in the summarize function", arg, [tuple])
116-
if isinstance(arg, tuple):
117-
if len(arg) < 2:
118-
raise ValueError(
119-
f"Argument {num} should have a minimum length of 2, "
120-
f"instead got {len(arg)}"
121-
)
122-
if len(arg) > 3:
123-
raise ValueError(
124-
f"Argument {num} should have a maximum length of 3, "
125-
f"instead got {len(arg)}"
126-
)
116+
if len(arg) < 2:
117+
raise ValueError(
118+
f"Argument {num} should have a minimum length of 2, "
119+
f"instead got {len(arg)}"
120+
)
121+
if len(arg) > 3:
122+
raise ValueError(
123+
f"Argument {num} should have a maximum length of 3, "
124+
f"instead got {len(arg)}"
125+
)
127126
entry = SD(*arg)
128127
func = entry.func
129128
names = entry.names_glue

0 commit comments

Comments
 (0)