0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Merge pull request #1462 from mholt/fix_1461

Revert removed method IncrNest
This commit is contained in:
Toby Allen 2017-02-20 15:20:10 +00:00 committed by GitHub
commit c4842e0fc1

View file

@ -120,6 +120,12 @@ func (d *Dispenser) NextBlock() bool {
return true
}
// IncrNest adds a level of nesting to the dispenser.
func (d *Dispenser) IncrNest() {
d.nesting++
return
}
// Val gets the text of the current token. If there is no token
// loaded, it returns empty string.
func (d *Dispenser) Val() string {