forked from forgejo/forgejo
Refactor use TrimSuffix instead of TrimRight (#12993)
* Refactor use TrimSuffix instead of TrimRight * TrimRight right * has #12990
This commit is contained in:
parent
551473b294
commit
818d921bbb
3 changed files with 3 additions and 3 deletions
|
@ -934,7 +934,7 @@ func NewContext() {
|
|||
|
||||
sec = Cfg.Section("U2F")
|
||||
U2F.TrustedFacets, _ = shellquote.Split(sec.Key("TRUSTED_FACETS").MustString(strings.TrimRight(AppURL, "/")))
|
||||
U2F.AppID = sec.Key("APP_ID").MustString(strings.TrimRight(AppURL, "/"))
|
||||
U2F.AppID = sec.Key("APP_ID").MustString(strings.TrimSuffix(AppURL, "/"))
|
||||
|
||||
UI.ReactionsMap = make(map[string]bool)
|
||||
for _, reaction := range UI.Reactions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue