Completed
Push — master ( 0967f1...338ec3 )
by Junior
49s queued 26s
created

src/routes/Home/services/index.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 8
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 4
c 1
b 0
f 0
nc 1
mnd 0
bc 0
fnc 4
dl 0
loc 8
rs 10
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ ??? 0 5 1
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