We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in next code pattern many things can be nil:
if info, err := d.torrentInfo(ts.DisplayName); err == nil { if info.Completed != nil { fi, serr := os.Stat(filepath.Join(d.SnapDir(), info.Name)) if serr != nil || fi.Size() != *info.Length || !fi.ModTime().Equal(*info.Completed) { if err := d.db.Update(d.ctx, torrentInfoReset(info.Name, info.Hash, *info.Length)); err != nil { if serr != nil { log.Error("[snapshots] Failed to reset db entry after stat error", "file", info.Name, "err", err, "stat-err", serr) } else { log.Error("[snapshots] Failed to reset db entry after stat mismatch", "file", info.Name, "err", err) } } } } }
possible nils: info, fi.
info
fi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in next code pattern many things can be nil:
possible nils:
info
,fi
.The text was updated successfully, but these errors were encountered: