Change summary
crates/collab/src/api/events.rs | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
Detailed changes
@@ -364,21 +364,19 @@ pub async fn post_panic(
}
fn report_to_slack(panic: &Panic) -> bool {
- if panic.os_name == "Linux" {
- if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
- return false;
- }
+ if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
+ return false;
+ }
- if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
- return false;
- }
+ if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
+ return false;
+ }
- if panic
- .payload
- .contains("GPU has crashed, and no debug information is available")
- {
- return false;
- }
+ if panic
+ .payload
+ .contains("GPU has crashed, and no debug information is available")
+ {
+ return false;
}
true