[mirror] a bluesky bot to post golang projects
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #31 from till/fix-everything-omg

fix(cache): return an error instead of panic()

authored by

Till! and committed by
GitHub
73cb0fe1 cc16aef4

+2 -1
+2 -1
internal/content/s3_cache.go
··· 4 4 "bytes" 5 5 "context" 6 6 "encoding/json" 7 + "fmt" 7 8 "strconv" 8 9 "time" 9 10 ··· 94 95 case string: 95 96 return v, nil 96 97 default: 97 - panic("unknown type") 98 + return "", fmt.Errorf("unexpected cached value type %T for key %q", v, key) 98 99 } 99 100 } 100 101