Skip to content

Commit

Permalink
fix: remove unnecessary optional chaining from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jun 16, 2021
1 parent 99a68c6 commit 75565a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const METHOD_PROPS = ['name', 'options', 'type', 'requestStream', 'responseStrea
'requestName', 'responseName', 'path', 'requestType', 'responseType', 'originalName']

function getCallTypeFromCall (call) {
const name = Object.getPrototypeOf(call)?.constructor?.name ?? ''
const name = Object.getPrototypeOf(call).constructor.name

if (name.indexOf('ServerUnaryCall') === 0) {
return CallType.UNARY
Expand Down

0 comments on commit 75565a8

Please sign in to comment.