From 4c38b33f88d5d6c714b95636da50fa6762cef050 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:32:40 +0100 Subject: [PATCH] Markdown: rename loadImage -> mdLoadImage --- Markdown.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Markdown.go b/Markdown.go index c127630b..50837774 100644 --- a/Markdown.go +++ b/Markdown.go @@ -43,7 +43,7 @@ func (m *MarkdownWidget) newState() *markdownState { return existing } - result := loadImage(link) + result := mdLoadImage(link) m.getState().images[link] = result return result }) @@ -120,7 +120,7 @@ func (m *MarkdownWidget) Build() { ) } -func loadImage(path string) immarkdown.MarkdownImageData { +func mdLoadImage(path string) immarkdown.MarkdownImageData { var ( img *image.RGBA err error @@ -137,7 +137,7 @@ func loadImage(path string) immarkdown.MarkdownImageData { defer func() { closeErr := resp.Body.Close() - Assert((closeErr == nil), "MarkdownWidget", "loadImage", "Could not close http request!") + Assert((closeErr == nil), "MarkdownWidget", "mdLoadImage", "Could not close http request!") }() rgba, _, imgErr := image.Decode(resp.Body)