Skip to content

Commit

Permalink
fix spell
Browse files Browse the repository at this point in the history
  • Loading branch information
afghanistanyn committed Dec 13, 2019
1 parent f9391b8 commit 6042ff1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var checkCmd = &cobra.Command{
Args: func(cmd *cobra.Command, args []string) error {

if len(itemId) == 0 {
return errors.New("itemId is required")
return errors.New("itemid is required")
}

return nil
Expand Down
10 changes: 5 additions & 5 deletions cmd/legu.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ var leguCmd = &cobra.Command{
Args: func(cmd *cobra.Command, args []string) error {

if len(pkgName) == 0 {
return errors.New("pkgName is required , like 'com.tx.webchat'")
return errors.New("pkgname is required , like 'com.tx.webchat'")
}

if len(pkgMd5) != 32 {
if len(pkgMd5) == 0 {
return errors.New("pkgMd5 is required")
return errors.New("pkgmd5 is required")
}
return errors.New("pkgMd5 with incorrect length, 32 characters required")
return errors.New("pkgmd5 with incorrect length, 32 characters required")
}
if len(pkgUrl) == 0 {
return errors.New("pkgUrl is required")
return errors.New("pkgurl is required")
}
_, err := url.Parse(pkgUrl)
if err != nil {
return errors.New("pkgUrl with incorrect format")
return errors.New("pkgurl with incorrect format")
}
return nil
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ var signCmd = &cobra.Command{
Args: func(cmd *cobra.Command, args []string) error {

if len(srcPkg) == 0 {
return errors.New("srcPkg is required")
return errors.New("srcpkg is required")
}

_, err := os.Stat(srcPkg)
if err != nil {
if !os.IsExist(err) {
return errors.New("srcPkg not exist")
return errors.New("srcpkg not exist")
}
}

Expand Down

0 comments on commit 6042ff1

Please sign in to comment.