Skip to content

Commit 1a4c1bb

Browse files
committed
[test] pkg/env: fix comments
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 889825c commit 1a4c1bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/env/env.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ func ParseFile(path string) (_ map[string]string, err error) {
7676

7777
scanner := bufio.NewScanner(fh)
7878
for scanner.Scan() {
79-
// trim the line from all leading whitespace first
79+
// Trim the line from all leading whitespace first.
8080
line := strings.TrimLeft(scanner.Text(), whiteSpaces)
81-
// line is not empty, and not starting with '#'
81+
// Line is not empty, and not starting with '#'.
8282
if len(line) > 0 && !strings.HasPrefix(line, "#") {
8383
if err := parseEnv(env, line); err != nil {
8484
return nil, err
@@ -111,7 +111,7 @@ func parseEnv(env map[string]string, line string) error {
111111
}
112112
}
113113
} else if val, ok := os.LookupEnv(name); ok {
114-
// if only a pass-through variable is given, clean it up.
114+
// If only a pass-through variable is given, clean it up.
115115
env[name] = val
116116
}
117117
}

0 commit comments

Comments
 (0)