Skip to content

Commit

Permalink
Markdown: rename loadImage -> mdLoadImage
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 11, 2024
1 parent 87c8aaa commit 4c38b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (m *MarkdownWidget) newState() *markdownState {
return existing
}

result := loadImage(link)
result := mdLoadImage(link)
m.getState().images[link] = result
return result
})
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4c38b33

Please sign in to comment.