We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff7c561 commit 98ea55aCopy full SHA for 98ea55a
1 file changed
swagger_server/controllers/default_controller.py
@@ -28,9 +28,7 @@ def delete_student(student_id): # noqa: E501
28
29
:rtype: object
30
"""
31
- if connexion.request.is_json:
32
- return delete(student_id)
33
- return 500, 'error'
+ return delete(student_id)
34
35
def get_student_by_id(student_id): # noqa: E501
36
"""gets student
@@ -42,7 +40,6 @@ def get_student_by_id(student_id): # noqa: E501
42
40
43
41
:rtype: Student
44
45
46
- return get_by_id(student_id)
47
+ return get_by_id(student_id)
+
48
0 commit comments