homebase-id / odin-core

The Homebase project provides fully distributed private communications, secure storage, personal social networking, web presence, a self-sovereign identity, and encrypted data storage - owned by you.
https://id.homebase.id/links
Other
4 stars 0 forks source link

Enable #nullable #23

Closed sebbarg closed 1 year ago

sebbarg commented 2 years ago

Enable #nullable everywhere. Once we're through all files, enable it globally.

sebbarg commented 2 years ago

Top op file:

nullable enable

In code:

Before: string someString = null;

After: string? someString = null;

Be wary of types that are used with serialization (e.g. models read and written to litedb). These fields should normally be nullable (i.e. have a question mark appended to the type).