fix: wrong code
Some checks failed
checks / build (push) Failing after 1m12s
checks / build (pull_request) Failing after 1m11s

This commit is contained in:
zzjc1234 2024-09-20 10:49:18 +08:00
parent 2eae418bf3
commit 424cfef91d

View File

@ -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]
}