We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dc95a commit 4b06882Copy full SHA for 4b06882
lib/node_modules/@stdlib/_tools/changelog/generate/lib/format_contributors.js
@@ -100,7 +100,11 @@ function formatContributor( contributor ) {
100
*/
101
function formatContributors( commits ) {
102
var contributors = extractContributors( commits );
103
- var out = sectionStart( 'contributors' );
+ var out;
104
+ if ( contributors.length === 0 ) {
105
+ return '';
106
+ }
107
+ out = sectionStart( 'contributors' );
108
out += heading( 'Contributors', 3 );
109
if ( contributors.length === 1 ) {
110
out += 'A total of 1 person contributed to this release. Thank you to this contributor:\n\n';
0 commit comments