Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Nov 30, 2024
1 parent 8d65894 commit 23a9b62
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/storage/cassandra/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ func (f *Factory) configureFromOptions(o *Options) {
o.others = make(map[string]*NamespaceConfig)
}
f.primaryConfig = o.GetPrimary()
if cfg := f.Options.Get(archiveStorageConfig); cfg != nil {
// avoid typed nil, see https://golang.org/doc/faq#nil_error
f.archiveConfig = cfg
}
f.archiveConfig = f.Options.Get(archiveStorageConfig)
}

// Initialize implements storage.Factory
Expand Down

0 comments on commit 23a9b62

Please sign in to comment.