Skip to content

Commit

Permalink
Update Dangerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
f-meloni authored Mar 4, 2019
1 parent e2fa0fb commit 5acc171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ end

# Run danger-prose to lint Chinese docs
added_and_modified_cn_docs = (git.added_files.grep(%r{docs_CN/*.md}) + git.modified_files.grep(%r{docs_CN/*.md}))
if added_and_modified_cn_docs.empty?
unless added_and_modified_cn_docs.empty?
prose.lint_files added_and_modified_cn_docs
end

# Run danger-prose to lint and check spelling English docs
added_and_modified_en_docs = (git.added_files.grep(%r{docs/*.md}) + git.modified_files.grep(%r{docs/*.md}))
if added_and_modified_en_docs.empty?
unless added_and_modified_en_docs.empty?
prose.lint_files added_and_modified_en_docs

prose.language = "en-us"
Expand Down

0 comments on commit 5acc171

Please sign in to comment.