From 60b5d07d001bb71737cdbbd1aa2759c0eea43e72 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Tue, 25 May 2021 16:51:49 +0300 Subject: [PATCH] Added todo --- src/hmnurl/urls.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index 8a253ba..2232726 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -896,6 +896,7 @@ func PathSafeTitle(title string) string { return title } +// TODO(asaf): Find a nicer solution that doesn't require adding a defer to every construction function while also not printing errors in tests. func CatchPanic() { if !isTest { if recovered := recover(); recovered != nil {