fix: wrong code
This commit is contained in:
parent
2eae418bf3
commit
424cfef91d
|
@ -124,20 +124,6 @@ func commitMsgToConf() (conf Conf, err error) {
|
|||
head := words[0]
|
||||
var hw string
|
||||
|
||||
msg := commit.Message
|
||||
slog.Debug("commit msg to conf", "msg", msg)
|
||||
if msg == "" {
|
||||
conf, err = parseConfFile(file)
|
||||
return
|
||||
}
|
||||
|
||||
line := strings.Split(msg, "\n")[0]
|
||||
|
||||
words := strings.Fields(line)
|
||||
|
||||
head := words[0]
|
||||
var hw string
|
||||
|
||||
if strings.HasSuffix(head, ":") || strings.HasSuffix(head, ".") {
|
||||
head = head[:len(head)-1]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user