Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant Nulls Removal #2055

Open
wants to merge 20 commits into
base: experimental
Choose a base branch
from

Conversation

parthshindee
Copy link
Contributor

@parthshindee parthshindee commented Aug 15, 2024

Summary

Campus Mobile codebase contains a large number of unnecessary nullable variables and null checks. This issue removes a majority of the redundant nulls.

Resolves #1955

Changelog

[General] [Change] - Removed redundant nulls throughout the app

Test Plan

There should be no changes in the app's functionality or UI. So, general testing is required and any changes should be made.

morebytes and others added 19 commits July 19, 2024 16:09
- Rewrote some logic to mitigate need for nullable variables (i.e., empty strings instead of nullables)
- app_provider
- ImageLoader
- Image
- NoticesModel, NoticesCard
- BuildInfo
- ContinueReadingButton
- LinkifyWithCatch
- CardContainer (partially)
- WebViewContainer (partially)
- DotsIndicator
- EventTime
- LastUpdatedWidget
- TimeRangeWidget
- DiningCard (partially), DiningDataProvider (partially), Item model, DiningMenuItem
- EmployeeIdDataProvider (partially)
- EventsDataProvider, EventsModel
- ScannerMessageDataProvider
- SpeedTestProvider (partially)
- Shuttle (partially)
- MessagesDataProvider, MessageService
- ParkingModel, all Parking cards
- CardsProvider
- Home card
- News
- EventsModel
- NoticesDataProvider
- UserDataProvider, UserProfileService
- Notifications models, Notifications cards, Notifications providers
- WebView
- PushNotifications (wrapper)
- EmployeeIdDataProvider
- MapSearchModel, MapSearchService, MapsDataProvider, Maps cards
@parthshindee parthshindee linked an issue Aug 15, 2024 that may be closed by this pull request
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: PR Review
Development

Successfully merging this pull request may close these issues.

Remove redundant nulls
3 participants