mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
Replace deprecated ioutil library, remove redundant statements + small optimizations
This commit is contained in:
committed by
Dan Christian Bogos
parent
78b2f56c51
commit
82468c580d
@@ -23,7 +23,7 @@ import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -80,7 +80,7 @@ func (self *SQLStorage) RebuildReverseForPrefix(prefix string) error {
|
||||
}
|
||||
|
||||
func (self *SQLStorage) CreateTablesFromScript(scriptPath string) error {
|
||||
fileContent, err := ioutil.ReadFile(scriptPath)
|
||||
fileContent, err := os.ReadFile(scriptPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user