Skip to content

Commit

Permalink
Fix tautological error
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Mar 3, 2024
1 parent 38b4f5e commit 376d91c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions entity/actor/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ func HelloWorld(ctx context.Context, a *Actor, b *p2ppubsub.Topic) {
me := a.Entity.DID.Id
greeting := []byte("Hello, world! " + me + " is here.")

if b != nil {
mesg, _ := msg.NewBroadcast(me, greeting, "text/plain", a.Keyset.SigningKey.PrivKey)
mesg.Broadcast(ctx, b)
}
mesg, _ := msg.NewBroadcast(me, greeting, "text/plain", a.Keyset.SigningKey.PrivKey)
mesg.Broadcast(ctx, b)
}

0 comments on commit 376d91c

Please sign in to comment.