mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
Use existing error variable instead of creating a initializing a new one
This commit is contained in:
committed by
Dan Christian Bogos
parent
60a4da69e0
commit
2abfd046f0
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package servmanager
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
@@ -300,7 +299,7 @@ func toggleService(serviceID string, status bool, srvMngr *ServiceManager) (err
|
||||
srvMngr.cfg.SIPAgentCfg().Enabled = status
|
||||
srvMngr.cfg.GetReloadChan() <- serviceID
|
||||
default:
|
||||
err = errors.New(utils.UnsupportedServiceIDCaps)
|
||||
err = utils.ErrUnsupportedServiceID
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user