pumpkin-zbh / amqp_comm_example

Prefer var declarations be placed at the top of their scope JS-0102
Anti-pattern
Minor
a year ago2 years old
All 'var' declarations must be at the top of the function scope
 14var __importStar = (this && this.__importStar) || function (mod) {
 15    if (mod && mod.__esModule) return mod;
 16    var result = {};
 17    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 18    __setModuleDefault(result, mod);
 19    return result;
 20};
All 'var' declarations must be at the top of the function scope
 13});
 14var __importStar = (this && this.__importStar) || function (mod) {
 15    if (mod && mod.__esModule) return mod;
 16    var result = {}; 17    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 18    __setModuleDefault(result, mod);
 19    return result;