Skip to content

Commit 0aaea71

Browse files
committed
refactor: remove dead fallback in print_block_string
1 parent 60bcd29 commit 0aaea71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/graphql/language/block_string.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def print_block_string(value: str, minimize: bool = False) -> str:
126126
# Expand a block string's raw value into independent lines. Split on the
127127
# GraphQL line terminators only (LF, CR, CRLF) like graphql-js; Python's
128128
# str.splitlines() would also split on characters like VT, FF and NEL.
129-
lines = _re_newline.split(escaped_value) or [""]
129+
lines = _re_newline.split(escaped_value)
130130
num_lines = len(lines)
131131
is_single_line = num_lines == 1
132132

0 commit comments

Comments
 (0)