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

Commit

Permalink
fix dfget panic
Browse files Browse the repository at this point in the history
Signed-off-by: yunfeiyangbuaa <[email protected]>
  • Loading branch information
yunfeiyanggzq committed Sep 14, 2019
1 parent 7dd9e88 commit 3b2743f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfget/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func reportMetrics(cfg *config.Config, supernodeAPI api.SupernodeAPI, downloadTi
if err != nil {
logrus.Errorf("failed to report metrics to supernode %s: %v", node, err)
}
if resp.IsSuccess() {
if resp != nil && resp.IsSuccess() {
return
}
}
Expand Down

0 comments on commit 3b2743f

Please sign in to comment.