THRIFT-5811: Update eslint & prettier
Client: js
Patch: Cameron Martin
This closes #3087
diff --git a/lib/nodejs/examples/httpClient.js b/lib/nodejs/examples/httpClient.js
index 19cc0c3..155b5f4 100644
--- a/lib/nodejs/examples/httpClient.js
+++ b/lib/nodejs/examples/httpClient.js
@@ -1,23 +1,21 @@
-var thrift = require('thrift');
-var helloSvc = require('./gen-nodejs/HelloSvc.js');
+var thrift = require("thrift");
+var helloSvc = require("./gen-nodejs/HelloSvc.js");
var options = {
- transport: thrift.TBufferedTransport,
- protocol: thrift.TJSONProtocol,
- path: "/hello",
- headers: {"Connection": "close"},
- https: false
+ transport: thrift.TBufferedTransport,
+ protocol: thrift.TJSONProtocol,
+ path: "/hello",
+ headers: { Connection: "close" },
+ https: false,
};
var connection = thrift.createHttpConnection("localhost", 9090, options);
var client = thrift.createHttpClient(helloSvc, connection);
-connection.on("error", function(err) {
- console.log("Error: " + err);
+connection.on("error", function (err) {
+ console.log("Error: " + err);
});
-client.hello_func(function(error, result) {
- console.log("Msg from server: " + result);
+client.hello_func(function (error, result) {
+ console.log("Msg from server: " + result);
});
-
-