fix: don't print emailSummary when aborting
This commit is contained in:
4
main.go
4
main.go
@@ -58,7 +58,9 @@ var rootCmd = &cobra.Command{
|
||||
return err
|
||||
}
|
||||
mm := m.(Model)
|
||||
fmt.Print(emailSummary(strings.Split(mm.To.Value(), TO_SEPARATOR), mm.Subject.Value()))
|
||||
if !mm.abort {
|
||||
fmt.Print(emailSummary(strings.Split(mm.To.Value(), TO_SEPARATOR), mm.Subject.Value()))
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user