forked from forgejo/forgejo
Update go-ini dependency and remove semicolon hack in translations (#2913)
This commit is contained in:
parent
bd23e36bec
commit
a6f337046f
17 changed files with 584 additions and 429 deletions
9
vendor/gopkg.in/ini.v1/section.go
generated
vendored
9
vendor/gopkg.in/ini.v1/section.go
generated
vendored
|
@ -54,6 +54,14 @@ func (s *Section) Body() string {
|
|||
return strings.TrimSpace(s.rawBody)
|
||||
}
|
||||
|
||||
// SetBody updates body content only if section is raw.
|
||||
func (s *Section) SetBody(body string) {
|
||||
if !s.isRawSection {
|
||||
return
|
||||
}
|
||||
s.rawBody = body
|
||||
}
|
||||
|
||||
// NewKey creates a new key to given section.
|
||||
func (s *Section) NewKey(name, val string) (*Key, error) {
|
||||
if len(name) == 0 {
|
||||
|
@ -136,6 +144,7 @@ func (s *Section) HasKey(name string) bool {
|
|||
}
|
||||
|
||||
// Haskey is a backwards-compatible name for HasKey.
|
||||
// TODO: delete me in v2
|
||||
func (s *Section) Haskey(name string) bool {
|
||||
return s.HasKey(name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue