Passed
Push — master ( 2c9229...fa7da2 )
by eval
01:47
created

ses.MessageTag.ToSDK   A

Complexity

Conditions 3

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 7
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
package ses
2
3
import (
4
	SDK "github.com/aws/aws-sdk-go-v2/service/ses"
5
	"github.com/evalphobia/aws-sdk-go-v2-wrapper/private/pointers"
6
)
7
8
type MessageTag struct {
0 ignored issues
show
introduced by
exported type MessageTag should have comment or be unexported
Loading history...
9
	Name  string
10
	Value string
11
}
12
13
func (r MessageTag) ToSDK() SDK.MessageTag {
0 ignored issues
show
introduced by
exported method MessageTag.ToSDK should have comment or be unexported
Loading history...
14
	o := SDK.MessageTag{}
15
16
	if r.Name != "" {
17
		o.Name = pointers.String(r.Name)
18
	}
19
	if r.Value != "" {
20
		o.Value = pointers.String(r.Value)
21
	}
22
	return o
23
}
24