Skip to content

Commit a74d9c5

Browse files
committed
FIxed bug when accessing length
1 parent f5f6905 commit a74d9c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v1/internal/features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const FEATURES = {
2727
// that supports reading the whole certificate, eg this commit:
2828
// https://github.com/nodejs/node/commit/345c40b6
2929
let desc = require('tls').TLSSocket.prototype.getPeerCertificate;
30-
return desc.length() >= 1;
30+
return desc.length >= 1;
3131
} catch( e ) {
3232
return false;
3333
}

0 commit comments

Comments
 (0)