lib/index.js
function tryResultAction(action, result, callback) {
	if (action.length > 1) return action.call(this, result, callback);
	try {
		action.call(this, result);
	} catch (err) {
		return callback(err || new Error('Unknown Error'));
	}
	return callback();
}
function tryResultAction(action, result, callback) {
	if (action.length > 1) return action.call(this, result, callback);
	try {
		action.call(this, result);
	} catch (err) {
		return callback(err || new Error('Unknown Error'));
	}
	return callback();
}
function tryResultAction ( action , result , callback ) { if ( action . length > 1 ) return action . call ( this , result , callback ) ; try { action . call ( this , result ) ; } catch ( err ) { return callback ( err || new Error ( 'Unknown Error' ) ) ; } return callback ( ) ; }
Call sync or async action and handle any thrown or async error

@param {Function} action - Result action to call
@param {(Object|Array)} result - An HtmlLint result or result list
@param {Function} callback - An callback for when the action is complete
@returns {undefined}
Call sync or async action and handle any thrown or async error