Skip to content

Commit

Permalink
refactor: git module
Browse files Browse the repository at this point in the history
- branch function in git module is modified for codecoverage

Signed-off-by: Guru Mehar Rachaputi <[email protected]>
  • Loading branch information
00thirdeye00 committed Jul 8, 2024
1 parent 961e1f6 commit 682acdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/git/Git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ namespace faker::git

std::string branch(unsigned maxIssueNum)
{
switch (number::integer(1, 3))
switch (number::integer(1, 2))
{
case 1:
return common::format("{}-{}", word::verb(), word::noun());
case 2:
return common::format("{}-{}-{}", word::verb(), word::adjective(), word::noun());
default:
return common::format("{}-{}-{}-{}", number::integer(unsigned(1), maxIssueNum), word::verb(),
word::adjective(), word::noun());
Expand Down

0 comments on commit 682acdb

Please sign in to comment.