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
Pull Request — master (#5)
by Victor Hugo
01:41
created

mollie.NewConfig   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 4
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
nop 2
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