Selaa lähdekoodia

fix: 修复commit日志总是抛出不合规范的问题

ZhengZiHan 2 vuotta sitten
vanhempi
commit
3539bec3c4

+ 1 - 1
web/src/main/java/cn/seecoder/web/core/commit/CommitResolver.java

@@ -23,7 +23,7 @@ public class CommitResolver {
         CommitType type = resolveType(title);
         CommitState state = resolveState(title);
         int id = resolveId(title);
-        if (type != CommitType.UNKNOWN && state != CommitState.UNKNOWN){
+        if (type != CommitType.UNKNOWN){
             return new CommitRule(type,state,id);
         } else{
             return null;