Skip to content

Commit c3579de

Browse files
committed
fix: 修复golangci-lint errcheck错误
- 在parseSourceMappedRepository调用处添加nolint:errcheck注释 - 这个错误是故意忽略的,因为仓库解析失败时应该继续处理 - 确保golangci-lint检查通过
1 parent 55cf759 commit c3579de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/parser/source_aware_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (sap *SourceAwareParser) parseSourceMappedComponents(content string, projec
9494
// 插件解析成功。
9595
} else {
9696
// 尝试解析仓库,忽略错误
97-
_ = sap.parseSourceMappedRepository(line, lineNumber, lineStart, project)
97+
_ = sap.parseSourceMappedRepository(line, lineNumber, lineStart, project) //nolint:errcheck
9898
// 仓库解析成功或失败都继续处理,无法解析的行跳过。
9999
}
100100

0 commit comments

Comments
 (0)