service/logs: remove pkg/errors, and minor cleanups

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-03-08 22:23:18 +01:00
parent 2eec74659e
commit 1bd58b0936
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
2 changed files with 2 additions and 3 deletions

View File

@ -3,10 +3,9 @@
package logs
import (
"errors"
"net/url"
"strings"
"github.com/pkg/errors"
)
// ParseLogDetails parses a string of key value pairs in the form

View File

@ -50,7 +50,7 @@ func TestParseLogDetails(t *testing.T) {
t.Run(tc.line, func(t *testing.T) {
actual, err := ParseLogDetails(tc.line)
if tc.expectedErr != "" {
assert.Check(t, is.ErrorContains(err, tc.expectedErr))
assert.Check(t, is.Error(err, tc.expectedErr))
} else {
assert.Check(t, err)
}