Skip to content

Commit

Permalink
Merge pull request Moya#1812 from f-meloni/patch-1
Browse files Browse the repository at this point in the history
Fix proselint on Dangerfile
  • Loading branch information
sunshinejr authored Mar 5, 2019
2 parents e2fa0fb + 5acc171 commit 525f4a6
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 525f4a6

Please sign in to comment.