Skip to content

Commit 1dacd7c

Browse files
Crash--claude
andcommitted
style: use += operator for string concatenation (gocritic)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4923575 commit 1dacd7c

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

model/vfs/vfss3/fsck.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/minio/minio-go/v7"
1515
)
1616

17-
1817
func (sfs *s3VFS) Fsck(accumulate func(log *vfs.FsckLog), failFast bool) error {
1918
entries := make(map[string]*vfs.TreeFile, 1024)
2019
tree, err := sfs.BuildTree(func(f *vfs.TreeFile) {

model/vfs/vfss3/impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func BucketName(orgID, bucketPrefix string) string {
7575
}
7676
name = strings.TrimRight(name, "-")
7777
if len(name) < 3 {
78-
name = name + strings.Repeat("0", 3-len(name))
78+
name += strings.Repeat("0", 3-len(name))
7979
}
8080
return name
8181
}

model/vfs/vfss3/thumbs.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ type thumbsS3 struct {
3737
}
3838

3939
type s3Thumb struct {
40-
pw *io.PipeWriter
41-
errCh chan error
42-
client *minio.Client
43-
bucket string
44-
name string
45-
ctx context.Context
40+
pw *io.PipeWriter
41+
errCh chan error
42+
client *minio.Client
43+
bucket string
44+
name string
45+
ctx context.Context
4646
}
4747

4848
func (t *s3Thumb) Write(p []byte) (int, error) {

pkg/appfs/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (f *s3Copier) Copy(stat os.FileInfo, src io.Reader) error {
101101
}
102102

103103
meta := map[string]string{
104-
"X-Content-Encoding": "br",
104+
"X-Content-Encoding": "br",
105105
"Original-Content-Length": strconv.FormatInt(stat.Size(), 10),
106106
}
107107

0 commit comments

Comments
 (0)