db: Refactor switch; NFC

Bu işleme şunda yer alıyor:
Daan Sprenkels 2020-07-27 18:47:37 +02:00
ebeveyn a8eba1b0df
işleme 104dbab335
1 değiştirilmiş dosya ile 1 ekleme ve 5 silme

Dosyayı Görüntüle

@ -73,11 +73,7 @@ func ErrHTTPStatusCode(err error) int {
switch err {
case nil:
return 0
case ErrKeyInvalidChar:
return http.StatusNotFound
case ErrKeyInvalidLength:
return http.StatusNotFound
case ErrPasteDoesNotExist:
case ErrKeyInvalidChar, ErrKeyInvalidLength, ErrPasteDoesNotExist:
return http.StatusNotFound
}
return http.StatusInternalServerError