mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
chore: apply arrow function
This commit is contained in:
parent
badc707777
commit
8670f70a3e
1 changed files with 1 additions and 3 deletions
|
@ -69,9 +69,7 @@ export default class Header extends React.Component {
|
|||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
});
|
||||
}).then((response) => response.json());
|
||||
|
||||
storage.setItem('token', resp.token);
|
||||
storage.setItem('username', resp.username);
|
||||
|
|
Loading…
Add table
Reference in a new issue