Skip to content

Commit f9a0d33

Browse files
committed
Small refactoring
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent ea381a8 commit f9a0d33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/cfengine_cli/docs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def _process_markdown_code_blocks(
270270
code_block["last_line"],
271271
)
272272

273-
if syntax_check and "novalidate" not in code_block["flags"]:
273+
if syntax_check and "novalidate" not in flags:
274274
try:
275275
fn_check_syntax(
276276
origin_path,
@@ -286,10 +286,10 @@ def _process_markdown_code_blocks(
286286
os.remove(snippet_path)
287287
raise e
288288

289-
if output_check and "noexecute" not in code_block["flags"]:
289+
if output_check and "noexecute" not in flags:
290290
fn_check_output()
291291

292-
if autoformat and "noautoformat" not in code_block["flags"]:
292+
if autoformat and "noautoformat" not in flags:
293293
fn_autoformat(
294294
origin_path,
295295
snippet_path,
@@ -298,7 +298,7 @@ def _process_markdown_code_blocks(
298298
code_block["last_line"],
299299
)
300300

301-
if replace and "noreplace" not in code_block["flags"]:
301+
if replace and "noreplace" not in flags:
302302
offset = fn_replace(
303303
origin_path,
304304
snippet_path,

0 commit comments

Comments
 (0)