We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3493311 commit c9a2b20Copy full SHA for c9a2b20
src/controllers/version/downloads.rs
@@ -62,9 +62,7 @@ fn increment_download_counts(
62
63
// Wrap in a transaction so we don't poison the outer transaction if this
64
// fails
65
- let _ = conn.transaction(|| {
66
- VersionDownload::create_or_increment(version_id, &conn)
67
- });
+ let _ = conn.transaction(|| VersionDownload::create_or_increment(version_id, &conn));
68
Ok(())
69
}
70
0 commit comments