Skip to content

Commit

Permalink
Fix array.includes issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
agreatfool committed Oct 16, 2020
1 parent 0454a18 commit 1e4ae67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Utility.withAllStdIn((inputBuff: Buffer) => {
const exportMap = new ExportMap();
const fileNameToDescriptor: { [key: string]: FileDescriptorProto } = {};

const isGrpcJs = ["generate_package_definition", "grpc_js"].includes(codeGenRequest.getParameter());
const isGrpcJs = ["generate_package_definition", "grpc_js"].indexOf(codeGenRequest.getParameter()) !== -1;

codeGenRequest.getProtoFileList().forEach((protoFileDescriptor) => {
fileNameToDescriptor[protoFileDescriptor.getName()] = protoFileDescriptor;
Expand Down

0 comments on commit 1e4ae67

Please sign in to comment.