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

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Apr 24, 2023
1 parent 6ecc935 commit 4bcd01f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions jprov/server/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,12 @@ func checkVersion(cmd *cobra.Command, w http.ResponseWriter, ctx *utils.Context)
}
chainID := clientCtx.ChainID

var v types.VersionResponse
v := types.VersionResponse{
Version: version.Version,
ChainID: chainID,
}
if len(res) > 0 {
v = types.VersionResponse{
Version: res,
ChainID: chainID,
}
} else {
v = types.VersionResponse{
Version: version.Version,
ChainID: chainID,
}
v.Version = res
}

err = json.NewEncoder(w).Encode(v)
Expand Down

0 comments on commit 4bcd01f

Please sign in to comment.