fix: empty commit
This commit is contained in:
		
							parent
							
								
									1eb096c1db
								
							
						
					
					
						commit
						e2b280b70c
					
				| 
						 | 
					@ -98,8 +98,16 @@ func commitMsgToConf() (conf Conf, err error) {
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						file := "conf.toml"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	msg := commit.Message
 | 
						msg := commit.Message
 | 
				
			||||||
	slog.Debug("commit msg to conf", "msg", msg)
 | 
						slog.Debug("commit msg to conf", "msg", msg)
 | 
				
			||||||
 | 
						if msg == "" {
 | 
				
			||||||
 | 
							conf, err = parseConfFile(file)
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	line := strings.Split(msg, "\n")[0]
 | 
						line := strings.Split(msg, "\n")[0]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	words := strings.Fields(line)
 | 
						words := strings.Fields(line)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user