Skip to content

Commit 6abb2bd

Browse files
fix(sonar): add the missing else clause
1 parent c0efa94 commit 6abb2bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/i18n/utils.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const changeLanguage = (lang: Language) => {
3939
}
4040
} else if (Platform.OS === 'web') {
4141
window.location.reload();
42+
} else {
43+
throw new Error('Unexpected value for Platform.OS');
4244
}
4345
};
4446

0 commit comments

Comments
 (0)