feat(cli): remove unused output filename

main
hau 2021-01-05 16:42:43 +07:00
parent d045e1d06a
commit dccea784d0
1 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ func (a *action) getConventionalCommits(commits []git.Commit) []convention.Commi
} }
func (a *action) generateChangelog(commits []convention.Commit) error { func (a *action) generateChangelog(commits []convention.Commit) error {
realOutput, _, filetype := a.getRealOutput() realOutput, filetype := a.getRealOutput()
version, err := a.getVersion() version, err := a.getVersion()
if err != nil { if err != nil {
@ -199,7 +199,7 @@ func (a *action) generateChangelog(commits []convention.Commit) error {
} }
} }
func (a *action) getRealOutput() (string, string, string) { func (a *action) getRealOutput() (string, string) {
output := a.flags[outputFlag] output := a.flags[outputFlag]
filename := a.flags[filenameFlag] filename := a.flags[filenameFlag]
filetype := a.flags[filetypeFlag] filetype := a.flags[filetypeFlag]
@ -208,7 +208,7 @@ func (a *action) getRealOutput() (string, string, string) {
realOutput := filepath.Join(output, nameWithExt) realOutput := filepath.Join(output, nameWithExt)
a.logDebug("output path %s", realOutput) a.logDebug("output path %s", realOutput)
return realOutput, filename, filetype return realOutput, filetype
} }
func (a *action) getVersion() (string, error) { func (a *action) getVersion() (string, error) {