| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 8 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import axios from 'axios' |
||
| 2 | import { setFollowing } from 'modules/Github' |
||
| 3 | |||
| 4 | export const getFollowingUsers = ({ username, dispatch }) => |
||
| 5 | axios |
||
| 6 | .get(`https://api.github.com/users/${username}/following`) |
||
| 7 | .then(res => res.data.map(users => users.login)) |
||
| 8 | .then(following => dispatch(setFollowing(following))) |
||
| 9 |