romanornr / autodealer

Unused parameter in function RVV-B0012
Bug risk
Minor
2 months ago2 years old
parameter 't' seems to be unused, consider removing or renaming it as _
21	}
22}
23
24func TestExpandUser(t *testing.T) {25	fmt.Println(ExpandUser("~/.gocryptotrader/config.json"))
26}
parameter 'ctx' seems to be unused, consider removing or renaming it as _
21}
22
23// HandleTwapTask handles a task for TWAP algorithm.
24func HandleTwapTask(ctx context.Context, t *asynq.Task) error {25	var p Payload
26	err := json.Unmarshal(t.Payload(), &p)
27	if err != nil {
parameter 'ctx' seems to be unused, consider removing or renaming it as _
19	return asynq.NewTask(TypeOrder, payload), nil
20}
21
22func HandleOrderTask(ctx context.Context, task *asynq.Task) error {23	var o *order.Submit // order.Submit
24	err := json.Unmarshal(task.Payload(), &o)
25	if err != nil {