Skip to content

Commit 875b27f

Browse files
authored
Merge pull request #9419 from okatu-loli/fix/code-typo
chore(driver, archive): Remove debug logs and add missing `os` import
2 parents fd69393 + 7323583 commit 875b27f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/doubao_new/driver.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ func (d *DoubaoNew) Put(ctx context.Context, dstDir model.Obj, file model.FileSt
304304
if len(data) < tailLen {
305305
tailLen = len(data)
306306
}
307-
fmt.Printf("head32 = %x\n", data[:headLen])
308-
fmt.Printf("tail32 = %x\n", data[len(data)-tailLen:])
309307
}
310308
if int64(len(data)) != expectLen {
311309
return fmt.Errorf("[doubao_new] merge blocks invalid body len: got=%d expect=%d seqs=%v", len(data), expectLen, groupSeqs)

internal/archive/tool/securepath.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package tool
33
import (
44
"errors"
55
"fmt"
6+
"os"
67
"path"
78
"path/filepath"
89
"strings"

0 commit comments

Comments
 (0)