Merge pull request #460 from sharelatex/ho-null-check-docs

null check map on files and docs inside logger
This commit is contained in:
Henry Oswald 2018-03-28 10:01:49 +01:00 committed by GitHub
commit a998d738ee

View file

@ -22,6 +22,8 @@ module.exports =
}
docs: (docs) ->
if !docs?.map?
return
docs.map (doc) ->
{
path: doc.path
@ -29,6 +31,8 @@ module.exports =
}
files: (files) ->
if !files?.map?
return
files.map (file) ->
{
path: file.path