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 удалений

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

@@ -140,8 +140,8 @@ func (c *Cache) GetOrAdd(key, value interface{}, ttl time.Duration) (actual inte
defer c.lock.Unlock()
// Check for existing item
if value, ok := c.getValue(key); ok {
return value, true
if actualValue, ok := c.getValue(key); ok {
return actualValue, true
}
c.add(key, value, ttl)