Skip to content

Commit dd1862a

Browse files
committed
Remove commented code
1 parent 4cc3edd commit dd1862a

File tree

1 file changed

+0
-9
lines changed
  • services/question-service/handlers

1 file changed

+0
-9
lines changed

services/question-service/handlers/list.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ func (s *Service) ListQuestions(w http.ResponseWriter, r *http.Request) {
177177
for _, doc := range paginatedResults {
178178
// Map data
179179
var question models.Question
180-
//complexityStr, ok := doc.Data()["complexity"].(string)
181-
//if ok {
182-
// complexity, err := models.ParseComplexity(complexityStr)
183-
// if err != nil {
184-
// http.Error(w, "Invalid complexity level in question: "+err.Error(), http.StatusInternalServerError)
185-
// return
186-
// }
187-
// question.Complexity = complexity
188-
//}
189180
if err := doc.DataTo(&question); err != nil {
190181
http.Error(w, "Failed to parse question: "+err.Error(), http.StatusInternalServerError)
191182
return

0 commit comments

Comments
 (0)