pkg/scan/output/nullsaver.go   A
last analyzed

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 9
dl 0
loc 16
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A output.NewNullSaver 0 2 1
A output.NullSaver.Close 0 2 1
A output.NullSaver.Save 0 2 1
1
package output
2
3
import "github.com/stefanoj3/dirstalk/pkg/scan"
4
5
func NewNullSaver() NullSaver {
6
	return NullSaver{}
7
}
8
9
type NullSaver struct{}
10
11
func (n NullSaver) Save(r scan.Result) error {
12
	return nil
13
}
14
15
func (n NullSaver) Close() error {
16
	return nil
17
}
18