Improvement: Refactor code to use dict.get() method #242
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
hacktoberfest
Status: Available
Issue was approved and available to claim or abandoned for over 3 days.
Type: Enhancement
New feature or request.
Description
As a developer,
I need code to be consistent and error-free.
Mocks
bridge-in-tech-backend/app/api/validations/organization.py
Lines 32 to 34 in 68d8ff9
For example this can be replaced by the get method i.e. data.get("KEY", "DEFAULT_VALUE") to avoid KeyError
Acceptance Criteria
Update [Required]
Definition of Done
Estimation
2 hours
The text was updated successfully, but these errors were encountered: