From c49fec45bbf3caa6527205bf853fdd7461d4ef60 Mon Sep 17 00:00:00 2001 From: mj Date: Sun, 14 May 2023 16:18:32 +0330 Subject: [PATCH] fix: logo path repo base url --- adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter.go b/adapter.go index 3e7532d2..ff6a6edb 100644 --- a/adapter.go +++ b/adapter.go @@ -8,7 +8,7 @@ import ( const ( NoRepoUrl = "" - GithubRepoUrl = "https://github.com/GoFarsi/assets/tree/main" + GithubRepoUrl = "https://raw.githubusercontent.com/GoFarsi/assets/main" ) type logoPathPattern func(path string) string @@ -41,5 +41,5 @@ func (a *AssetRepo) adaptLogoPath(patternFunc logoPathPattern) { // formatPathToGithubMainRepo return a formatted path of file based on GitHub main branch func formatFilePathByGithubRepo(path string) string { - return fmt.Sprintf("%s/%s?raw=true", GithubRepoUrl, path) + return fmt.Sprintf("%s/%s", GithubRepoUrl, path) }