Browse Source

Fix dangerfile

pull/880/merge
nrew225 8 years ago
parent
commit
4c67cc50ed
  1. 10
      Dangerfile

10
Dangerfile

@ -27,10 +27,10 @@ end
# Check syntax # Check syntax
if has_readme_changes if has_readme_changes
require 'json' require 'json'
results = File.read 'syntaxcheck.json'
j = JSON.parse results
if j['error']==true
fail j['title']
markdown j['message']
syntaxresults = File.read 'syntaxcheck.json'
sj = JSON.parse syntaxresults
if sj['error']==true
fail sj['title']
markdown sj['message']
end end
end end
Loading…
Cancel
Save