From c7e7692057ab0183e74841c28dbe93ac74816662 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 21 Jun 2018 11:19:28 -0700 Subject: [PATCH] indents --- src/paymentservice/server.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/paymentservice/server.js b/src/paymentservice/server.js index 1ec579e..42eb6fb 100644 --- a/src/paymentservice/server.js +++ b/src/paymentservice/server.js @@ -13,24 +13,24 @@ class HipsterShopServer { * Handler for PaymentService.Charge. * @param {*} call { ChargeRequest } * @param {*} callback fn(err, ChargeResponse) - */ - static ChargeServiceHandler(call, callback) { - try { - const response = this.charge(call.request) - callback(null, response); - } catch (err) { - callback(err); - } + */ + static ChargeServiceHandler(call, callback) { + try { + const response = this.charge(call.request) + callback(null, response); + } catch (err) { + callback(err); } + } /** * Charge function * @param {*} request * @return transaction_id */ - static charge(request) { - return { transaction_id: -1 } - } + static charge(request) { + return { transaction_id: -1 } + } listen() { this.server.bind(`0.0.0.0:${this.port}`, grpc.ServerCredentials.createInsecure());