Skip to content

Commit

Permalink
fix: error when releaseDescriptionTemplate is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielCastro committed Apr 7, 2020
1 parent 30ab044 commit 17dca0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/verifyConditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function verifyConditions(config: PluginConfig, context: PluginCont
}
}

if (config.releaseDescriptionTemplate !== null || config.releaseDescriptionTemplate !== undefined) {
if (config.releaseDescriptionTemplate !== null && config.releaseDescriptionTemplate !== undefined) {
if (typeof config.releaseDescriptionTemplate !== 'string') {
throw new SemanticReleaseError('config.releaseDescriptionTemplate must be a string');
}
Expand Down

0 comments on commit 17dca0c

Please sign in to comment.