Skip to content

Commit

Permalink
React/Sonar: void should not be used
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 10, 2024
1 parent 61119bf commit c51970d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-http-backend';

void i18n
i18n
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
Expand All @@ -19,6 +19,9 @@ void i18n
backend: {
loadPath: '../assets/locales/{{ lng }}/{{ ns }}.json',
},
})
.catch(error => {
console.error('i18n initialization failed', error);
});

export default i18n;

0 comments on commit c51970d

Please sign in to comment.