From 81bc8fec08477827cb8be0be73fc0ebe03f93941 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 12 Nov 2022 00:20:19 +0100 Subject: [PATCH] '%s' -> %q --- server/database/mock.go | 2 +- server/gitea/client.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/database/mock.go b/server/database/mock.go index e6c1b5a..dfe2316 100644 --- a/server/database/mock.go +++ b/server/database/mock.go @@ -28,7 +28,7 @@ func (p tmpDB) Put(name string, cert *certificate.Resource) error { func (p tmpDB) Get(name string) (*certificate.Resource, error) { cert, has := p.intern.Get(name) if !has { - return nil, fmt.Errorf("cert for '%s' not found", name) + return nil, fmt.Errorf("cert for %q not found", name) } return cert.(*certificate.Resource), nil } diff --git a/server/gitea/client.go b/server/gitea/client.go index ef35f64..575ebbc 100644 --- a/server/gitea/client.go +++ b/server/gitea/client.go @@ -107,7 +107,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str if cache.Exists { if cache.IsSymlink { linkDest := string(cache.Body) - log.Debug().Msgf("[cache] follow symlink from'%s' to '%s'", resource, linkDest) + log.Debug().Msgf("[cache] follow symlink from %q to %q", resource, linkDest) return client.ServeRawContent(targetOwner, targetRepo, ref, linkDest) } else { log.Debug().Msg("[cache] return bytes") @@ -127,7 +127,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str // first handle symlinks { objType := resp.Header.Get(giteaObjectTypeHeader) - log.Trace().Msgf("server raw content object: %s", objType) + log.Trace().Msgf("server raw content object %q", objType) if client.followSymlinks && objType == objTypeSymlink { // limit to 1000 chars defer reader.Close()