Skip to content

Commit d4981fa

Browse files
committed
style: remove unnecessary log formatting calls
Signed-off-by: Nick Hale <[email protected]>
1 parent 90e52e4 commit d4981fa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/builtin/builtin.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ func SysWrite(ctx context.Context, env []string, input string) (string, error) {
270270
defer locker.Unlock(params.Filename)
271271

272272
data := []byte(params.Content)
273-
msg := fmt.Sprintf("Wrote %d bytes to file %s", len(data), params.Filename)
274-
log.Debugf(msg)
273+
log.Debugf("Wrote %d bytes to file %s", len(data), params.Filename)
275274

276275
return "", os.WriteFile(params.Filename, data, 0644)
277276
}
@@ -301,10 +300,9 @@ func SysAppend(ctx context.Context, env []string, input string) (string, error)
301300
return "", err
302301
}
303302

304-
msg := fmt.Sprintf("Appended %d bytes to file %s", n, params.Filename)
305-
log.Debugf(msg)
303+
log.Debugf("Appended %d bytes to file %s", n, params.Filename)
306304

307-
return "", err
305+
return "", nil
308306
}
309307

310308
func fixQueries(u string) (string, error) {

0 commit comments

Comments
 (0)