chore(deps): update docker/build-push-action action to v6 #252
Annotations
2 warnings
Validate
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, rinchsan/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
unneeded `return` statement:
src/main.rs#L67
warning: unneeded `return` statement
--> src/main.rs:67:5
|
67 | / return match env::var(ENV_SENTRY_DSN) {
68 | | Ok(dns) => Some(sentry::init((
69 | | dns,
70 | | sentry::ClientOptions {
... |
79 | | }
80 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
67 ~ match env::var(ENV_SENTRY_DSN) {
68 + Ok(dns) => Some(sentry::init((
69 + dns,
70 + sentry::ClientOptions {
71 + release: sentry::release_name!(),
72 + attach_stacktrace: true,
73 + ..Default::default()
74 + },
75 + ))),
76 + Err(_) => {
77 + info!("{ENV_SENTRY_DSN} not set, skipping Sentry setup");
78 + return None;
79 + }
80 ~ }
|
|