Migrated URL validation out of database saving

This commit is contained in:
2018-11-17 17:07:33 +00:00
committed by cdramey
parent 5c669c8b93
commit 9f13f8e09b
3 changed files with 23 additions and 18 deletions

View File

@ -16,11 +16,6 @@ var (
)
func (stor *BoltStorage) AddQURL(q *qurl.QURL) error {
err := q.CheckValid()
if err != nil {
return err
}
tx, err := stor.DB.Begin(true)
if err != nil {
return err