Skip to content

Commit

Permalink
fix: typos (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Nov 19, 2023
1 parent 350417c commit ca19d36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/channel/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class ZitiChannel {
*
* @returns {Promise}
*/
async write(conn, data) {
write(conn, data) {

if (!isEqual(conn.state, ZitiEdgeProtocol.conn_state.Closed)) {

Expand Down
6 changes: 5 additions & 1 deletion src/context/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,11 @@ class ZitiContext extends EventEmitter {
});

}


if (isUndefined(serviceName)) {
serviceName = self.shouldRouteOverZitiSync(url);
}

return serviceName;

}
Expand Down
2 changes: 1 addition & 1 deletion src/http/ziti-websocket-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ async function initAsClient(websocket, address, protocols, options) {
} else {
serviceName = await websocket._zitiContext.shouldRouteOverZiti( address );

if (!isNull(serviceName)) {
if (!isUndefined(serviceName)) {

let newUrl = new URL( address );

Expand Down

0 comments on commit ca19d36

Please sign in to comment.