Skip to content

Commit

Permalink
Pass Field Directly As They Are The Same Type
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
  • Loading branch information
mahadzaryab1 committed Sep 24, 2024
1 parent 7071fba commit 0a234d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/query/app/static_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ var (
// RegisterStaticHandler adds handler for static assets to the router.
func RegisterStaticHandler(r *mux.Router, logger *zap.Logger, qOpts *QueryOptions, qCapabilities querysvc.StorageCapabilities) io.Closer {
staticHandler, err := NewStaticAssetsHandler(qOpts.UIConfig.AssetsPath, StaticAssetsHandlerOptions{
UIConfig: UIConfig{
ConfigFile: qOpts.UIConfig.ConfigFile,
LogAccess: qOpts.UIConfig.LogAccess,
},
UIConfig: qOpts.UIConfig,
BasePath: qOpts.BasePath,
StorageCapabilities: qCapabilities,
Logger: logger,
Expand Down

0 comments on commit 0a234d5

Please sign in to comment.