Skip to content

Commit

Permalink
do not check file storage type
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Dec 27, 2023
1 parent 74c586c commit 75b049f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cmd_test/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
package cmd

import (
"github.com/qiniu/qshell/v2/cmd_test/test"
"strings"
"testing"

"github.com/qiniu/qshell/v2/cmd_test/test"
)

func TestVersion(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions iqshell/storage/object/operations/type_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func (info *ChangeTypeInfo) getTypeOfInt() (int, *data.CodeError) {
return -1, data.NewEmptyError().AppendDesc("Parse type error:" + err.Error())
}

if ret < 0 || ret > 4 {
return -1, data.NewEmptyError().AppendDesc("type must be one of 0, 1, 2, 3, 4")
}
return ret, nil
}

Expand Down

0 comments on commit 75b049f

Please sign in to comment.