From 2485de4cbeb3b6e3bae04e999c1922076236cb7d Mon Sep 17 00:00:00 2001 From: luantranminh Date: Mon, 17 Jun 2024 18:20:21 +0700 Subject: [PATCH] atlasexec: typo --- atlasexec/atlas.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atlasexec/atlas.go b/atlasexec/atlas.go index 5144fc2..92ff5d9 100644 --- a/atlasexec/atlas.go +++ b/atlasexec/atlas.go @@ -192,8 +192,7 @@ func (c *Client) WithWorkDir(dir string, fn func(*Client) error) error { wd := c.workingDir defer func() { c.workingDir = wd }() c.workingDir = dir - err := fn(c) - return err + return fn(c) } // Login runs the 'login' command.