Removed unnecessary catch

This commit is contained in:
Philipp Czora
2018-11-09 15:44:54 +01:00
parent 2e8de0ed23
commit 15f7ec7719
2 changed files with 1 additions and 6 deletions

View File

@@ -12,8 +12,5 @@ export function changePassword(
.put(url, { oldPassword, newPassword }, CONTENT_TYPE_PASSWORD_CHANGE)
.then(response => {
return response;
})
.catch(err => {
return { error: err };
});
}

View File

@@ -1,5 +1,6 @@
//@flow
import { apiClient } from "@scm-manager/ui-components";
export const CONTENT_TYPE_PASSWORD_OVERWRITE =
"application/vnd.scmm-passwordOverwrite+json;v=2";
@@ -8,8 +9,5 @@ export function setPassword(url: string, password: string) {
.put(url, { newPassword: password }, CONTENT_TYPE_PASSWORD_OVERWRITE)
.then(response => {
return response;
})
.catch(err => {
return { error: err };
});
}