Skip to content

Commit b2f42c2

Browse files
authored
update with Maxim's suggestion
1 parent 32f7bd1 commit b2f42c2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/lesson_check.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,9 @@ def check_config(reporter, source_dir):
188188
reporter.check(defaults in config.get('defaults', []),
189189
'configuration',
190190
'"root" not set to "." in configuration')
191-
if 'life_cycle' in config:
192-
return config['life_cycle']
193-
else
194-
return None
191+
if 'life_cycle' not in config:
192+
config['life_cycle'] = None
193+
return config['life_cycle']
195194

196195
def check_source_rmd(reporter, source_dir, parser):
197196
"""Check that Rmd episode files include `source: Rmd`"""

0 commit comments

Comments
 (0)