libcontainer: prefer bytes.TrimSpace() over strings.TrimSpace()#2609
Conversation
c610802 to
fb499a8
Compare
|
Rebased |
|
CI failure is unrelated (temp error from a server)
The code that failed is debian="debian:3.11.6"
skopeo copy docker://amd64/debian:buster "oci:$debian"If this is repeated frequently, maybe it makes sense to add a retry loop with a sleep. |
|
CI is green now 👍 |
|
@thaJeztah can you please rebase it on top of the current HEAD? I want that shiny new golangci-lint CI job to be run here. |
Perform trimming before converting to a string, which should be somewhat more performant. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
👍 rebased |
Nice ;) |
Perform trimming before converting to a string, which should be somewhat more performant.
There may be more cases where we could process variables as byte before converting to strings; see https://medium.com/go-walkthrough/go-walkthrough-bytes-strings-packages-499be9f4b5bd
Also removed some unneeded conversions, caught by my IDE