f213/education-backend

View on GitHub
src/apps/homework/api/viewsets.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Merge this if statement with the enclosing one.
Open

            if answer.author != self.request.user:

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

There are no issues that match your filters.

Category
Status