Linting, CI, some small logic fixes.

This commit is contained in:
2020-11-21 21:25:16 +05:00
parent 94234816c5
commit 3d8d3e478c
11 changed files with 252 additions and 91 deletions

View File

@@ -1,7 +1,6 @@
package sec
import (
// stdlib
"errors"
"os"
)
@@ -32,9 +31,11 @@ func parseEnv() error {
for _, element := range parsedTree {
printDebug("Processing element '%s'", element.EnvVar)
data, found := os.LookupEnv(element.EnvVar)
if !found {
printDebug("Value for '%s' environment variable wasn't found", element.EnvVar)
continue
} else {
printDebug("Value for '%s' will be: %s", element.EnvVar, data)