We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b99a8 commit c8e7c90Copy full SHA for c8e7c90
iqshell/storage/object/download/operations/batch.go
@@ -2,6 +2,7 @@ package operations
2
3
import (
4
"github.com/qiniu/qshell/v2/iqshell"
5
+ "github.com/qiniu/qshell/v2/iqshell/common/alert"
6
"github.com/qiniu/qshell/v2/iqshell/common/data"
7
"github.com/qiniu/qshell/v2/iqshell/common/export"
8
"github.com/qiniu/qshell/v2/iqshell/common/flow"
@@ -30,6 +31,9 @@ func (info *BatchDownloadWithConfigInfo) Check() *data.CodeError {
30
31
if err := info.Info.Check(); err != nil {
32
return err
33
}
34
+ if len(info.LocalDownloadConfig) == 0 {
35
+ return alert.CannotEmptyError("LocalDownloadConfig", "")
36
+ }
37
return nil
38
39
0 commit comments