Commit edc0b3d 1 parent 0d079a7 commit edc0b3d Copy full SHA for edc0b3d
File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ integrationtest:
8
8
go test -tags=integration -failfast -parallel 1 -v -coverprofile=coverage.txt ` go list ./... | egrep -v ' examples|sms' `
9
9
10
10
staticcheck :
11
- staticcheck -go 1.10 ` go list ./... | egrep -v ' examples|sms' `
11
+ staticcheck ` go list ./... | egrep -v ' examples|sms' `
12
12
13
13
generate :
14
14
go generate ./storagev2/
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ type UcQueryServerInfo struct {
87
87
func (io UcQueryServerInfo ) toMapWithoutInfo () map [string ][]string {
88
88
89
89
ret := make (map [string ][]string )
90
- if io . Main != nil && len (io .Main ) > 0 {
90
+ if len (io .Main ) > 0 {
91
91
ret ["main" ] = io .Main
92
92
}
93
93
94
- if io . Backup != nil && len (io .Backup ) > 0 {
94
+ if len (io .Backup ) > 0 {
95
95
ret ["backup" ] = io .Backup
96
96
}
97
97
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ type (
12
12
RegionsProvider region.RegionsProvider
13
13
14
14
// 上传凭证接口,可选
15
+ // 但如果不传值,则必须给出 BucketName,并且配合 Uploader 的 Credentials 自动生成 UpToken
15
16
UpToken uptoken.Provider
16
17
17
- // 空间名称,可选
18
+ // 空间名称,可选,但如果不传值,则必须给出 UpToken
18
19
BucketName string
19
20
20
21
// 对象名称
You can’t perform that action at this time.
0 commit comments