Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -10,8 +10,8 @@ module.exports = function TransactionServiceFactory(socket, TransactionError) {
function MultiTargetTransaction(targets, options) {
var pending = Object.create(null)
, results = []
, channel = createChannel()
var results = []
var channel = createChannel()
function doneListener(someChannel, data) {
if (someChannel === channel) {
@@ -62,8 +62,8 @@ module.exports = function TransactionServiceFactory(socket, TransactionError) {
function SingleTargetTransaction(target, options) {
var result = new options.result(target)
, pending = new PendingTransactionResult(result)
, channel = createChannel()
var pending = new PendingTransactionResult(result)
var channel = createChannel()
function doneListener(someChannel, data) {
if (someChannel === channel) {
@@ -107,16 +107,16 @@ module.exports = function TransactionServiceFactory(socket, TransactionError) {
function PendingTransactionResult(result) {
var resolver = Promise.defer()
, seq = 0
, last = Infinity
, unplaced = []
var seq = 0
var last = Infinity
var unplaced = []
function readQueue() {
var message
, foundAny = false
var foundAny = false
while (seq <= last && (message = unplaced[seq])) {
unplaced[seq] = void 0
unplaced[seq] = undefined
if (seq === last) {
result.success = message.success