Code refactoring

This commit is contained in:
Alexey Khit
2023-01-14 19:11:52 +03:00
parent e472397705
commit 395304654a
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -14,8 +14,7 @@ func ReplaceEnvVars(text string) string {
var def string
var dok bool
i := strings.IndexByte(key, ':')
if i > 0 {
if i := strings.IndexByte(key, ':'); i > 0 {
key, def = key[:i], key[i+1:]
dok = true
}