Skip to content
Snippets Groups Projects
Commit d277fe67 authored by COLLET Ismael's avatar COLLET Ismael
Browse files

Update tipselector.go

parent 781f8d79
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ func (tipSelector *TipSelector) AddTip(msg *message.Message) { ...@@ -45,7 +45,7 @@ func (tipSelector *TipSelector) AddTip(msg *message.Message) {
// Tips returns two tips. // Tips returns two tips.
func (tipSelector *TipSelector) Tips() (trunkMessageId, branchMessageId message.Id) { func (tipSelector *TipSelector) Tips() (trunkMessageId, branchMessageId message.Id) {
tip := tipSelector.tips.RandomEntry() tip := tipSelector.tips.RandomEntry()
if tip == nil { if true { // Original code : if tip == nil
trunkMessageId = message.EmptyId trunkMessageId = message.EmptyId
branchMessageId = message.EmptyId branchMessageId = message.EmptyId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment