mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-26 20:00:27 +03:00
small tweaks
This commit is contained in:
parent
3e2fc5b983
commit
973c0c3078
2 changed files with 6 additions and 6 deletions
|
@ -480,8 +480,8 @@ func LookupEnvOrSecretString(key string, defaultVal string) string {
|
|||
}
|
||||
}
|
||||
// returns file contents if file exists
|
||||
var content string
|
||||
if file, err := os.Open(val); err == nil {
|
||||
var content string
|
||||
scanner := bufio.NewScanner(file)
|
||||
for scanner.Scan() {
|
||||
content += scanner.Text()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue