error in channel ownership check
This commit is contained in:
parent
b60e93043b
commit
8035d5a3cd
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ func (s *Sync) ensureChannelOwnership() error {
|
|||
return err
|
||||
}
|
||||
|
||||
channelNotFound := (*resolveResp)[s.LbryChannelName].Error == nil || strings.Contains(*((*resolveResp)[s.LbryChannelName].Error), "cannot be resolved")
|
||||
channelNotFound := (*resolveResp)[s.LbryChannelName].Error != nil && strings.Contains(*((*resolveResp)[s.LbryChannelName].Error), "cannot be resolved")
|
||||
|
||||
if !channelNotFound {
|
||||
return errors.New("Channel exists and we don't own it. Pick another channel.")
|
||||
|
|
Loading…
Reference in a new issue