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`
Этот коммит содержится в:
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user