CVOrRevTreeID() returns the CurrentVersion if available, otherwise falls back to returning the RevTreeID or an empty string.
()
| 142 | |
| 143 | // CVOrRevTreeID() returns the CurrentVersion if available, otherwise falls back to returning the RevTreeID or an empty string. |
| 144 | func (sd *SyncData) CVOrRevTreeID() string { |
| 145 | if sd == nil { |
| 146 | return "" |
| 147 | } |
| 148 | if cv := sd.RevAndVersion.CV(); cv != "" { |
| 149 | return cv |
| 150 | } |
| 151 | return sd.RevAndVersion.RevTreeID |
| 152 | } |
| 153 | |
| 154 | // determine set of current channels based on removal entries. |
| 155 | func (sd *SyncData) getCurrentChannels() base.Set { |