File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export class SslLabsService implements ISslLabsService {
5252 }
5353
5454 if ( sslResult . endpoints . length > 0 ) {
55- const endpoint : any = sslResult . endpoints . shift ( ) ;
55+ const endpoint : any = sslResult . endpoints [ 0 ] ;
5656 const gradeScore : Number = this . convertCertificateGradeToNumber ( endpoint . grade ) ;
5757 resolve ( gradeScore ) ;
5858 } else {
@@ -74,7 +74,7 @@ export class SslLabsService implements ISslLabsService {
7474 }
7575
7676 if ( sslResult . endpoints . length > 0 ) {
77- const endpoint : any = sslResult . endpoints . shift ( ) ;
77+ const endpoint : any = sslResult . endpoints [ 0 ] ;
7878
7979 const expDate = Number ( endpoint . details . cert . notAfter ) ;
8080 console . log ( `Certificate expire date: ${ new Date ( expDate ) } ` ) ;
You can’t perform that action at this time.
0 commit comments