Skip to content

Commit f8645ba

Browse files
committed
nicer code
1 parent 1049a4e commit f8645ba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gql/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ def init(schema, endpoint, root, config_filename):
4646
if endpoint == 'same as schema':
4747
endpoint = schema
4848

49-
documents = join_paths(root, '**/*.graphql')
5049
config = Config(
5150
schema=schema,
5251
endpoint=endpoint,
53-
documents=documents
52+
documents=join_paths(root, '**/*.graphql')
5453
)
5554

5655
config.save(config_filename)

0 commit comments

Comments
 (0)