Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelmy committed Jan 6, 2024
1 parent f80ec26 commit ee54630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var serverCmd = &cobra.Command{
server -p 8000`,
Run: func(cmd *cobra.Command, args []string) {
port, err := cmd.Flags().GetInt32("port")
if err != nil || port != 0 {
if err != nil || port == 0 {
port = 8000
}
internal.StartServer(port)
Expand Down

0 comments on commit ee54630

Please sign in to comment.