Skip to content

Commit

Permalink
nathan comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iwysiu committed Jun 21, 2024
1 parent 52f8702 commit e5c1332
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/datasource/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ func (ds *Datasource) QueryData(ctx context.Context, req *backend.QueryDataReque
case QueryGetServiceMap:
currentRes = ds.getSingleServiceMap(ctx, query, req.PluginContext)
default:
res.Responses[query.RefID] = backend.DataResponse{
Error: fmt.Errorf("unknown query type: %s", query.QueryType),
}
continue
currentRes.Error = fmt.Errorf("unknown query type: %s", query.QueryType)
}
res.Responses[query.RefID] = currentRes
}
Expand Down

0 comments on commit e5c1332

Please sign in to comment.