ocket8888 commented on code in PR #7555:
URL: https://github.com/apache/trafficcontrol/pull/7555#discussion_r1276562105


##########
experimental/traffic-portal/src/app/core/certs/cert-viewer/cert-viewer.component.ts:
##########
@@ -177,7 +178,12 @@ export class CertViewerComponent implements OnInit {
                        this.dsCert = false;
                        return;
                }
-               this.cert = await this.dsAPI.getSSLKeys(ID);
+               try {
+                       this.cert = await this.dsAPI.getSSLKeys(ID);
+               } catch(_) {

Review Comment:
   fwiw, you can just do 
   ```javascript
   try {
       // ...
   } catch {
       // ...
   }
   ```
   without assigning the error to a variable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to