Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some checks #18

Merged
merged 1 commit into from Oct 20, 2018
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -311,16 +311,9 @@ func (h *Handler) AddOrders(w http.ResponseWriter, r *http.Request, _ httprouter
case err != nil:
h.handleError(w, err, 500)
default:
tradeChance, err := model.HasTradeChanceByOrder(h.db, order.ID)
if err != nil {
h.handleError(w, err, 500)
return
}
if tradeChance {
if err := model.RunTrade(h.db); err != nil {
// トレードに失敗してもエラーにはしない
log.Printf("runTrade err:%s", err)
}
if err := model.RunTrade(h.db); err != nil {
// トレードに失敗してもエラーにはしない
log.Printf("runTrade err:%s", err)
}
h.handleSuccess(w, map[string]interface{}{
"id": order.ID,
ProTip! Use n and p to navigate between commits in a pull request.