Skip to content

Commit ebc57af

Browse files
Update tdf.go
1 parent 9ec744a commit ebc57af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/tdf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ func (s SDK) CreateTDFContext(ctx context.Context, writer io.Writer, reader io.R
178178
// - splitPlan is set
179179
// - kaoTemplate is set
180180
if len(tdfConfig.splitPlan) > 0 && len(tdfConfig.kaoTemplate) > 0 {
181-
return nil, fmt.Errorf("cannot set both splitPlan and kaoTemplate")
181+
return nil, errors.New("cannot set both splitPlan and kaoTemplate")
182182
}
183183
if tdfConfig.autoconfigure && (len(tdfConfig.splitPlan) > 0 || len(tdfConfig.kaoTemplate) > 0) {
184-
return nil, fmt.Errorf("cannot set autoconfigure and splitPlan or kaoTemplate")
184+
return nil, errors.New("cannot set autoconfigure and splitPlan or kaoTemplate")
185185
}
186186

187187
if tdfConfig.autoconfigure { //nolint:nestif // simplify after removing support for splitPlan

0 commit comments

Comments
 (0)