From d51245a5275f5e8edbd410f2d6366628fc9e6c37 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 11 Mar 2023 06:20:19 +0100 Subject: [PATCH] fix first linter issues --- FEATURES.md | 2 +- cmd/main.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/FEATURES.md b/FEATURES.md index a2f84b4..2a07799 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -42,4 +42,4 @@ Redirects every path under `/articles` to `/posts` while keeping the path. /articles/* /posts/:splat 302 ``` -Example: `/articles/2022/10/12/post-1/` -> `/posts/2022/10/12/post-1/` \ No newline at end of file +Example: `/articles/2022/10/12/post-1/` -> `/posts/2022/10/12/post-1/` diff --git a/cmd/main.go b/cmd/main.go index 746a1a9..84915c9 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -103,7 +103,6 @@ func Serve(ctx *cli.Context) error { // Create listener for SSL connections log.Info().Msgf("Create TCP listener for SSL on %s", listeningSSLAddress) listener, err := net.Listen("tcp", listeningSSLAddress) - if err != nil { return fmt.Errorf("couldn't create listener: %v", err) }