mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
fix first linter issues
This commit is contained in:
parent
074b1707cf
commit
d51245a527
2 changed files with 1 additions and 2 deletions
|
@ -42,4 +42,4 @@ Redirects every path under `/articles` to `/posts` while keeping the path.
|
||||||
/articles/* /posts/:splat 302
|
/articles/* /posts/:splat 302
|
||||||
```
|
```
|
||||||
|
|
||||||
Example: `/articles/2022/10/12/post-1/` -> `/posts/2022/10/12/post-1/`
|
Example: `/articles/2022/10/12/post-1/` -> `/posts/2022/10/12/post-1/`
|
||||||
|
|
|
@ -103,7 +103,6 @@ func Serve(ctx *cli.Context) error {
|
||||||
// Create listener for SSL connections
|
// Create listener for SSL connections
|
||||||
log.Info().Msgf("Create TCP listener for SSL on %s", listeningSSLAddress)
|
log.Info().Msgf("Create TCP listener for SSL on %s", listeningSSLAddress)
|
||||||
listener, err := net.Listen("tcp", listeningSSLAddress)
|
listener, err := net.Listen("tcp", listeningSSLAddress)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("couldn't create listener: %v", err)
|
return fmt.Errorf("couldn't create listener: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue