Fix shadowed variables in various places: Part 2 of 2 (#10176)

This PR fixes shadowed variables in the following packages:
- `app`
- `utils`
- `utils/markdown`
- `services/mailservice`
Этот коммит содержится в:
Hanzei
2019-01-28 21:57:45 +01:00
коммит произвёл GitHub
родитель 58b2a3d16e
Коммит 179e98c245
7 изменённых файлов: 26 добавлений и 22 удалений

Просмотреть файл

@@ -77,10 +77,10 @@ func ParseBlocks(markdown string, lines []Line) (*Document, []*ReferenceDefiniti
didAdd := false
for i := lastMatchIndex; i >= 0; i-- {
if container, ok := openBlocks[i].(ContainerBlock); ok {
if newBlocks := container.AddChild(newBlocks); newBlocks != nil {
if addedBlocks := container.AddChild(newBlocks); addedBlocks != nil {
closeBlocks(openBlocks[i+1:], &referenceDefinitions)
openBlocks = openBlocks[:i+1]
openBlocks = append(openBlocks, newBlocks...)
openBlocks = append(openBlocks, addedBlocks...)
didAdd = true
break
}