mirror of
https://github.com/Graylog2/graylog-project-cli.git
synced 2026-03-13 08:02:57 +08:00
Fix linter hints
This commit is contained in:
@@ -21,14 +21,14 @@ var mdDetailsRenderer = goldmark.New(goldmark.WithExtensions(extension.GFM))
|
||||
type noParagraphRenderer struct {
|
||||
}
|
||||
|
||||
func (n *noParagraphRenderer) Extend(m goldmark.Markdown) {
|
||||
func (r *noParagraphRenderer) Extend(m goldmark.Markdown) {
|
||||
m.Renderer().AddOptions(renderer.WithNodeRenderers(
|
||||
util.Prioritized(n, 500),
|
||||
util.Prioritized(r, 500),
|
||||
))
|
||||
}
|
||||
|
||||
func (n *noParagraphRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer) {
|
||||
reg.Register(ast.KindParagraph, n.renderParagraph)
|
||||
func (r *noParagraphRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer) {
|
||||
reg.Register(ast.KindParagraph, r.renderParagraph)
|
||||
}
|
||||
func (r *noParagraphRenderer) renderParagraph(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
|
||||
return ast.WalkContinue, nil
|
||||
|
||||
@@ -105,7 +105,7 @@ func TestParseGitHubURL(t *testing.T) {
|
||||
}
|
||||
|
||||
url, _ = ParseGitHubURL("github://Graylog2/graylog2-server.git")
|
||||
if url.IsHTTPS() || url.IsHTTPS() {
|
||||
if url.IsSSH() || url.IsHTTPS() {
|
||||
t.Error("expected URL to not be SSH or HTTPS")
|
||||
}
|
||||
url, _ = ParseGitHubURL("https://github.com/Graylog2/graylog2-server.git")
|
||||
|
||||
Reference in New Issue
Block a user