Skip to content

Commit 6f665da

Browse files
committed
simplify
1 parent 5b97a67 commit 6f665da

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/config/config.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ type DAConfig struct {
165165

166166
// GetNamespace returns the namespace for header submittions.
167167
func (d *DAConfig) GetNamespace() string {
168-
if d.Namespace != "" {
169-
return d.Namespace
170-
}
171-
return "" // Default value is empty string
168+
return d.Namespace
172169
}
173170

174171
// GetDataNamespace returns the namespace for data submissions, falling back to the header namespace if not set

0 commit comments

Comments
 (0)