AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

refactor(frontend): Remove unnecessary keywords in `BaseAutoGPTServerAPI`

Open BaunaBadmosh opened this issue 1 year ago • 1 comments

Background

fixed issue #8101

Changes 🏗️

the main change to the BaseAutoGPTServerAPI class was the removal of the async keyword from 23 methods that don't use await internally. These methods now return Promises directly, which is more efficient and cleaner. The async keyword was retained for 4 methods that do use await. No changes were made to private methods or WebSocket-related functions. These modifications address the issue of unnecessary async functions while maintaining the same functionality, improving code efficiency without altering the class's behavior.

BaunaBadmosh avatar Oct 01 '24 18:10 BaunaBadmosh

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

:white_check_mark: Pwuts
:white_check_mark: majdyz
:white_check_mark: Torantulino
:x: PRIYANKjakharia
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Oct 01 '24 18:10 CLAassistant