Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(cli): handle error properly
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 17, 2021
1 parent 9d10ea1 commit b89b5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/iot/generateCAIntermediate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const generateCAIntermediate = async (args: {
serviceCertificate: rootCert,
},
(err, cert) => {
if (err !== undefined) return reject(err)
if (err !== undefined && err !== null) return reject(err)
resolve(cert)
},
),
Expand Down

0 comments on commit b89b5be

Please sign in to comment.