simplify codebase.

This commit is contained in:
fiatjaf
2023-09-19 21:18:40 -03:00
parent 5afda80c1a
commit cd227e6986
14 changed files with 111 additions and 527 deletions

View File

@@ -27,9 +27,8 @@ func newTestCalendar(url string) *RemoteCalendar {
return cal
}
func newTestDigest(in string) []byte {
hash := sha256.Sum256([]byte(in))
return hash[:]
func newTestDigest(in string) [32]byte {
return sha256.Sum256([]byte(in))
}
func TestRemoteCalendarExample(t *testing.T) {