Skip to content

Commit ce3e1d9

Browse files
Apply styling to if-block.
1 parent 2769d56 commit ce3e1d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

datajoint/declare.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,9 @@ def format_attribute(attr):
439439
match, attr = translate_attribute(attr)
440440
if match is None:
441441
return attr
442-
elif match["path"] is None:
442+
if match["path"] is None:
443443
return f"`{attr}`"
444-
else:
445-
return f"({attr})"
444+
return f"({attr})"
446445

447446
match = re.match(
448447
r"(?P<unique>unique\s+)?index\s*\(\s*(?P<args>.*)\)", line, re.I

0 commit comments

Comments
 (0)