Skip to content

Commit

Permalink
Make Linux the fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jan 3, 2024
1 parent b354d1a commit 6059f5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sentry_webhook/post_sentry_event_to_salesforce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ function toOSPicklistValue(value: string | undefined): string | undefined {
}

const normalizedValue = value.toLowerCase();
if (normalizedValue.includes('linux') || normalizedValue.includes('fedora')) {
return 'Linux';
}
if (normalizedValue.includes('android')) {
return 'Android';
}
Expand All @@ -174,8 +171,7 @@ function toOSPicklistValue(value: string | undefined): string | undefined {
if (normalizedValue.includes('mac')) {
return 'macOs';
}
console.warn('Unexpected OS:', value);
return value;
return 'Linux';
}

function encodeFormData(field: string, value?: string) {
Expand Down

0 comments on commit 6059f5e

Please sign in to comment.