From bf27b97a57193436efaab90415aee8704714faf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Mon, 13 Jan 2025 13:30:03 +0100 Subject: [PATCH] didtest: offset persona constants It seems like having a persona with a zero value confuses some static checker into warning against a possible nil pointer deref. An easy fix is to just not have zero. --- did/didtest/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/did/didtest/crypto.go b/did/didtest/crypto.go index 6999b4e..c340344 100644 --- a/did/didtest/crypto.go +++ b/did/didtest/crypto.go @@ -28,7 +28,7 @@ type Persona int // // [table]: https://en.wikipedia.org/wiki/Alice_and_Bob#Cryptographic_systems const ( - PersonaAlice Persona = iota + PersonaAlice Persona = iota + 1 PersonaBob PersonaCarol PersonaDan