mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
fix lint issues and tests
This commit is contained in:
parent
dc023b81a8
commit
ea13ac0e92
7 changed files with 27 additions and 33 deletions
|
@ -146,8 +146,7 @@ func Serve(ctx *cli.Context) error {
|
|||
|
||||
// Start the web fastServer
|
||||
log.Info().Msgf("Start listening on %s", listener.Addr())
|
||||
http.Serve(listener, fastServer)
|
||||
if err != nil {
|
||||
if err := http.Serve(listener, fastServer); err != nil {
|
||||
log.Panic().Err(err).Msg("Couldn't start fastServer")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue