sparse-intern-71089
07/19/2021, 7:37 PMprehistoric-london-9917
07/19/2021, 8:16 PMdamp-school-17708
07/20/2021, 7:57 AMprehistoric-london-9917
07/22/2021, 11:47 PMconfig.get() will return undefined if that key isn’t there, so the || ""; is probably unnecessary. Undefined also lets you use the ternary operator in line 14 of this snippet.
This lets the createCertificate function to remain pretty simple.prehistoric-london-9917
07/22/2021, 11:48 PMcreateCertificate function uses the same resource name every time. So if you need to call it more than once, you’ll need to come up with a way to make my-cert unique each call.