diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-09-23 21:52:20 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-09-23 21:52:20 +0200 |
commit | ed353fc849b1c6014b9cc91c1936729d1f79d8fb (patch) | |
tree | fbe86ed0f60e054e6ef444a9464a78ba6b4c4697 /skate/verify.go | |
parent | 3e2c21a396a0e1ce98a2fdb2de5018de0a380f71 (diff) | |
download | refcat-ed353fc849b1c6014b9cc91c1936729d1f79d8fb.tar.gz refcat-ed353fc849b1c6014b9cc91c1936729d1f79d8fb.zip |
misc: fix and improve comments
Diffstat (limited to 'skate/verify.go')
-rw-r--r-- | skate/verify.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/skate/verify.go b/skate/verify.go index 5df0a7e..c5fbeff 100644 --- a/skate/verify.go +++ b/skate/verify.go @@ -112,8 +112,7 @@ type MatchResult struct { Reason Reason } -// VerificationPair groups two identifiers and their match status and -// match reason. +// MatchPair groups two identifiers and their match status and match reason. type MatchPair struct { A string B string @@ -135,7 +134,9 @@ func JsonMarshalNewline(v interface{}) ([]byte, error) { return b, nil } -// Verify verifies two releases and will ignore short titles. +// Verify verifies two releases and will ignore short titles. TODO: We want +// this to be a type with configuration options and maybe some pluggable +// pieces, e.g. for author matching, etc. func Verify(a, b *Release) MatchResult { return VerifyMinTitleLength(a, b, 5) } |