GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( b021d2...7c1d1b )
by Victor Hugo
01:04 queued 10s
created

mollie/config.go   A

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 1
eloc 8
dl 0
loc 15
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A mollie.NewConfig 0 4 1
1
package mollie
2
3
// Config contains information that helps during the setup of a new Mollie client.
4
type Config struct {
5
	testing bool
6
	auth    string
7
}
8
9
//NewConfig build a Mollie configuration object,
10
// it takes t to indicate if our client is meant to create requests for testing
11
// and auth to indicate the authentication method we want to use.
12
func NewConfig(t bool, auth string) *Config {
13 1
	return &Config{
14
		testing: t,
15
		auth:    auth,
16
	}
17
}
18