Fix some DETECTED VIOLATIONS in the config file (#7550)

consistency ftw
This commit is contained in:
Richard van der Hoff 2020-05-22 10:11:50 +01:00 committed by GitHub
parent d1ae1015ec
commit 66a564c859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 72 additions and 55 deletions

View file

@ -93,10 +93,11 @@ class MetricsConfig(Config):
#known_servers: true
# Whether or not to report anonymized homeserver usage statistics.
#
"""
if report_stats is None:
res += "# report_stats: true|false\n"
res += "#report_stats: true|false\n"
else:
res += "report_stats: %s\n" % ("true" if report_stats else "false")