[x] Tested your changes against relevant architectures and platforms;
[x] Ran make fmt on your commit series before opening this PR;
[ ] Updated relevant documentation.
Description of changes
When parsing environmental variables in kraft run, which are often presented in circumstances with strings with an equals delimeter, the use of SplitN was not always checked for empty values. To prevent possible nil-pointers and to keep code consistent, replace all areas where this type of procedure occurs with strings.Cut instead.
Prerequisite checklist
make fmt
on your commit series before opening this PR;Description of changes
When parsing environmental variables in
kraft run
, which are often presented in circumstances with strings with an equals delimeter, the use ofSplitN
was not always checked for empty values. To prevent possible nil-pointers and to keep code consistent, replace all areas where this type of procedure occurs withstrings.Cut
instead.