go-shrt

Shortlinks and go-get redirects
git clone git://git.danielmoch.com/go-shrt.git
Log | Files | Refs | README | LICENSE

commit 61d4ebfe270b5e913dc0d68e2009bbd021adb2e2
parent f27d3323dbb8b9698666892fdcb769c071995a64
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed, 23 Dec 2020 06:57:52 -0500

Only call osInit when non-nil

Diffstat:
Mcmd/shrt/main.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/shrt/main.go b/cmd/shrt/main.go @@ -254,7 +254,9 @@ func main() { os.Exit(errShrtFile) } - osInit(dbpath) + if osInit != nil { + osInit(dbpath) + } shrt, err = goshrt.ReadShrtFile(dbpath) if err != nil {