Skip to content

chore(deps): update docker/build-push-action action to v6 #252

chore(deps): update docker/build-push-action action to v6

chore(deps): update docker/build-push-action action to v6 #252

GitHub Actions / clippy succeeded Jun 17, 2024 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 80 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded `return` statement

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 ~     }
   |