fix linter

This commit is contained in:
Simon 2024-11-08 14:22:36 +07:00
parent 9b45187db4
commit 2871955b6d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class ChannelApiView(ApiBaseView):
def post(self, request, channel_id):
"""modify channel overwrites"""
data = request.data
if not isinstance(data, dict) or not "channel_overwrites" in data:
if not isinstance(data, dict) or "channel_overwrites" not in data:
return Response({"error": "invalid payload"}, status=400)
overwrites = data["channel_overwrites"]