From b230b76c205a93fa30e802987f3343617341d137 Mon Sep 17 00:00:00 2001 From: Davor Gajic Date: Mon, 25 Sep 2023 17:10:56 +0200 Subject: [PATCH] fix 'expecting pointer' error --- logs/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/build.go b/logs/build.go index ab9df78..8724100 100644 --- a/logs/build.go +++ b/logs/build.go @@ -15,7 +15,7 @@ type buildCmd struct { } func (cmd *buildCmd) Run(ctx context.Context, client *api.Client) error { - var build *apps.Build + build := &apps.Build{} if cmd.Name != "" { if err := client.Get(ctx, api.NamespacedName(cmd.Name, client.Project), build); err != nil { return err