mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
storage: Fix type error returning nothing in dry run case.
This commit is contained in:
@@ -7,7 +7,7 @@ from pipeline.storage import PipelineMixin
|
|||||||
class AddHeaderMixin(object):
|
class AddHeaderMixin(object):
|
||||||
def post_process(self, paths, dry_run=False, **kwargs):
|
def post_process(self, paths, dry_run=False, **kwargs):
|
||||||
if dry_run:
|
if dry_run:
|
||||||
return
|
return []
|
||||||
|
|
||||||
with open(settings.STATIC_HEADER_FILE) as header_file:
|
with open(settings.STATIC_HEADER_FILE) as header_file:
|
||||||
header = header_file.read().decode(settings.FILE_CHARSET)
|
header = header_file.read().decode(settings.FILE_CHARSET)
|
||||||
|
|||||||
Reference in New Issue
Block a user