Skip to content

Commit 9ab9b8e

Browse files
committed
refactor: remove useless/unreachable code
revert/Revert commit has returned in earlier checking, these 2 conditions can never be satisfied. just remove them.
1 parent d79e106 commit 9ab9b8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

validator/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func validateHeader(header string, config *globalConfig) {
124124
length := len(header)
125125
if config.LineLimit > 0 &&
126126
length > config.LineLimit &&
127-
!(isFixupOrSquash || typ == "revert" || typ == "Revert") {
127+
!isFixupOrSquash {
128128
state.LineOverLong.LogAndExit(length, config.LineLimit, header)
129129
}
130130
}

0 commit comments

Comments
 (0)