Skip to content

Commit 5cebb24

Browse files
authored
fix(semver): remove unused variable (#88)
1 parent 79bd587 commit 5cebb24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/semver.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function determineReleaseType(message: string, previousReleaseType: Relea
1414
const messageCleaned = message.toLowerCase().trim();
1515

1616
// Destructure keywords from config
17-
const { majorKeywords, minorKeywords, patchKeywords } = config;
17+
const { majorKeywords, minorKeywords } = config;
1818

1919
// Determine release type from message
2020
let currentReleaseType: ReleaseType = 'patch';
@@ -32,6 +32,9 @@ export function determineReleaseType(message: string, previousReleaseType: Relea
3232
return 'minor';
3333
}
3434

35+
// Note: For now, we don't have a separate default increment config and therefore we'll always
36+
// return true which somewhat negates searching for patch keywords; however, in the future
37+
// there may be a usecase where we make this configurable.
3538
return 'patch';
3639
}
3740

0 commit comments

Comments
 (0)