fix failure case

This commit is contained in:
Niko Storni 2018-08-22 18:54:50 -04:00
parent 6b65cb115a
commit c51ed5612d
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -96,7 +96,9 @@ func (s *Sync) AppendSyncedVideo(videoID string, published bool, failureReason s
Published: published, Published: published,
FailureReason: failureReason, FailureReason: failureReason,
} }
s.claimNames[claimName] = true if claimName != "" {
s.claimNames[claimName] = true
}
} }
// SendErrorToSlack Sends an error message to the default channel and to the process log. // SendErrorToSlack Sends an error message to the default channel and to the process log.