fix failure case

This commit is contained in:
Niko Storni 2018-08-22 18:54:50 -04:00
parent 06e9dd9a98
commit 6db304ec22

View file

@ -96,7 +96,9 @@ func (s *Sync) AppendSyncedVideo(videoID string, published bool, failureReason s
Published: published,
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.