From 34afc9cd02a0626cd008302cd7513240da410e04 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 12 Jan 2015 17:45:37 -0500 Subject: [PATCH] JSHint fixed lint error --- awx/ui/static/js/helpers/Variables.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/Variables.js b/awx/ui/static/js/helpers/Variables.js index 6673b91d05..3dcd81260e 100644 --- a/awx/ui/static/js/helpers/Variables.js +++ b/awx/ui/static/js/helpers/Variables.js @@ -81,7 +81,8 @@ angular.module('VariablesHelper', ['Utilities']) .factory('ToJSON', ['$log', 'ProcessErrors', function($log, ProcessErrors) { return function(parseType, variables, stringify, reviver) { var json_data, - result; + result, + tmp; // bracketVar, // key, // lines, i, newVars = []; @@ -119,7 +120,7 @@ angular.module('VariablesHelper', ['Utilities']) // throw 'Failed to parse YAML string. Parser returned ' + key + ' : ' + value + '.'; // } // }); - var tmp = jsyaml.dump(json_data); + tmp = jsyaml.dump(json_data); if(tmp.indexOf('[object Object]')!==-1){ throw "Failed to parse YAML string. Parser returned' + key + ' : ' +value + '.' "; }