mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
JSHint
fixed lint error
This commit is contained in:
@@ -81,7 +81,8 @@ angular.module('VariablesHelper', ['Utilities'])
|
|||||||
.factory('ToJSON', ['$log', 'ProcessErrors', function($log, ProcessErrors) {
|
.factory('ToJSON', ['$log', 'ProcessErrors', function($log, ProcessErrors) {
|
||||||
return function(parseType, variables, stringify, reviver) {
|
return function(parseType, variables, stringify, reviver) {
|
||||||
var json_data,
|
var json_data,
|
||||||
result;
|
result,
|
||||||
|
tmp;
|
||||||
// bracketVar,
|
// bracketVar,
|
||||||
// key,
|
// key,
|
||||||
// lines, i, newVars = [];
|
// lines, i, newVars = [];
|
||||||
@@ -119,7 +120,7 @@ angular.module('VariablesHelper', ['Utilities'])
|
|||||||
// throw 'Failed to parse YAML string. Parser returned ' + key + ' : ' + value + '.';
|
// 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){
|
if(tmp.indexOf('[object Object]')!==-1){
|
||||||
throw "Failed to parse YAML string. Parser returned' + key + ' : ' +value + '.' ";
|
throw "Failed to parse YAML string. Parser returned' + key + ' : ' +value + '.' ";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user