Skip to content

Commit

Permalink
🐛 Fix error format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuoqiu-Yingyi committed Dec 29, 2024
1 parent fc1b38b commit 65df215
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cloud/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func (local *Local) DownloadObject(filePath string) (data []byte, err error) {

data, err = os.ReadFile(key)
if err != nil {
if os.IsNotExist(err) {
err = ErrCloudObjectNotFound
}
return
}

Expand Down Expand Up @@ -296,8 +299,8 @@ func (local *Local) GetConcurrentReqs() (ret int) {
if ret < 1 {
ret = 16
}
if ret > 256 {
ret = 256
if ret > 1024 {
ret = 1024
}
return
}
Expand Down

0 comments on commit 65df215

Please sign in to comment.