Skip to content

Commit

Permalink
Merge pull request #15789 from qmonmert/vue/sonar
Browse files Browse the repository at this point in the history
[Vue] Sonar: 'Unexpected empty arrow function'
  • Loading branch information
DanielFran authored Aug 1, 2021
2 parents 7e5bee6 + 2f799c0 commit 025b86f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class AccountService {
<%_ } _%>
} else {
this.store.commit('logout');
this.router.push('/', () => {});
this.router.push('/');
sessionStorage.removeItem("requested-url");
}
<%_ if (enableTranslation) { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class JhiNavbar extends Vue {
<%_ if (!authenticationTypeJwt) { _%>
this.loginService().logout().then(response => {
this.$store.commit('logout');
this.$router.push('/', () => {});
this.$router.push('/');
<%_ if (authenticationTypeOauth2) { _%>
const data = response.data;
let logoutUrl = data.logoutUrl;
Expand All @@ -66,7 +66,7 @@ export default class JhiNavbar extends Vue {
localStorage.removeItem('<%=jhiPrefixDashed %>-authenticationToken');
sessionStorage.removeItem('<%=jhiPrefixDashed %>-authenticationToken');
this.$store.commit('logout');
this.$router.push('/', () => {});
this.$router.push('/');
<%_ } _%>
}

Expand Down

0 comments on commit 025b86f

Please sign in to comment.