Skip to content

Commit

Permalink
chore: check release date
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsen committed Jul 27, 2024
1 parent de67a44 commit 29e944f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion number/number.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Parse(str string) (*Number, error) {
return nil, fmt.Errorf("empty number str")
}
if strings.Contains(str, ".") {
return nil, fmt.Errorf("should not contain extname")
return nil, fmt.Errorf("should not contain extname, str:%s", str)
}
rs := &Number{
number: "",
Expand Down
3 changes: 3 additions & 0 deletions searcher/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ func (p *DefaultSearcher) verifyMeta(meta *model.AvMeta) error {
if len(meta.Title) == 0 {
return fmt.Errorf("no title")
}
if meta.ReleaseDate == 0 {
return fmt.Errorf("no release_date")
}
return nil
}

Expand Down

0 comments on commit 29e944f

Please sign in to comment.