Skip to content

Commit 9ac21f1

Browse files
committed
fix generate_diff
1 parent 0e641b7 commit 9ac21f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gendiff/gen_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def generate_diff(file1, file2, format_name='stylish'):
4343
file2 = open_ymlf(file2)
4444
diff = difference(file1, file2)
4545
match format_name:
46-
case 'stylish':
46+
case None:
4747
return gen_diff_stylish(diff)
4848
case 'plain':
4949
return gen_diff_plain(diff)
0 Bytes
Binary file not shown.

gendiff/scripts/gendiff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def main():
1818
return diff
1919

2020

21-
if __name__ == "__main__":
22-
print(main())
21+
if __name__ == '__main__':
22+
main()

0 commit comments

Comments
 (0)