mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
update gitea.com/macaron/macaron to 1.4.0 (#9608)
This commit is contained in:
7
vendor/gopkg.in/ini.v1/key.go
generated
vendored
7
vendor/gopkg.in/ini.v1/key.go
generated
vendored
@@ -147,10 +147,15 @@ func (k *Key) transformValue(val string) string {
|
||||
noption := vr[2 : len(vr)-2]
|
||||
|
||||
// Search in the same section.
|
||||
// If not found or found the key itself, then search again in default section.
|
||||
nk, err := k.s.GetKey(noption)
|
||||
if err != nil || k == nk {
|
||||
// Search again in default section.
|
||||
nk, _ = k.s.f.Section("").GetKey(noption)
|
||||
if nk == nil {
|
||||
// Stop when no results found in the default section,
|
||||
// and returns the value as-is.
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// Substitute by new value and take off leading '%(' and trailing ')s'.
|
||||
|
Reference in New Issue
Block a user