Skip to content

Commit f22bddb

Browse files
jleveuglejleveugle
authored andcommitted
perf: remove useless catch
1 parent 0867236 commit f22bddb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/manager/apps/public-cloud/src/navbar/navbar-notification.service.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ export default class NavbarNotificationService {
2121
}
2222

2323
getMessages() {
24-
return this.$translate.refresh()
24+
return this
25+
.$translate
26+
.refresh()
2527
.then(() => this.OvhApiNotificationAapi.query({
2628
lang: this.$translate.preferredLanguage(),
2729
target: this.TARGET,
28-
}).$promise
29-
.catch((error) => {
30-
throw error;
31-
}));
30+
}).$promise);
3231
}
3332

3433
getSubLinks() {

0 commit comments

Comments
 (0)