Skip to content

Commit 8a02574

Browse files
♻️ refactor(wrapper): remove avatar field verification
1 parent 30f3eee commit 8a02574

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

squarecloud/client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,6 @@ async def app(self, app_id: str, **kwargs) -> Application:
374374
if not app_data:
375375
raise ApplicationNotFound(app_id=app_id)
376376
app_data = app_data.pop()
377-
if app_data.get('avatar'):
378-
del app_data['avatar']
379377
app: Application = Application(
380378
client=self, http=self._http, **app_data
381379
) # type: ignore
@@ -398,9 +396,6 @@ async def all_apps(self, **kwargs) -> List[Application]:
398396
)
399397
payload = response.response
400398
apps_data: list = payload['applications']
401-
for data in apps_data:
402-
if data.get('avatar'):
403-
del data['avatar']
404399
apps: List[Application] = [
405400
Application(client=self, http=self._http, **data)
406401
for data in apps_data

0 commit comments

Comments
 (0)