From 4c67cc50ed27f1531e8ba135b3420831729fffd3 Mon Sep 17 00:00:00 2001 From: nrew225 Date: Sun, 4 Dec 2016 13:55:37 -0600 Subject: [PATCH] Fix dangerfile --- Dangerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dangerfile b/Dangerfile index f48eb6e5..28ba4e7f 100644 --- a/Dangerfile +++ b/Dangerfile @@ -27,10 +27,10 @@ end # Check syntax if has_readme_changes 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