diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/RaceBot.iml b/.idea/RaceBot.iml deleted file mode 100644 index 5e764c4..0000000 --- a/.idea/RaceBot.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 86e44cb..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/api/server.go b/api/server.go index 69d9cb5..8b1d3f0 100644 --- a/api/server.go +++ b/api/server.go @@ -22,7 +22,11 @@ func (s *Server) Start() error { r := gin.Default() SetupRoutes(r) fmt.Println("Server is running on port:", config.HTTPPort) - r.Run(":" + config.HTTPPort) + err := r.Run(":" + config.HTTPPort) + if err != nil { + return err + } + return nil } func SetupRoutes(app *gin.Engine) {