Skip to content

fix(utility): nullable formatting - #13800

Closed
Ron Green (georgettica) wants to merge 2 commits into
PowerShell:masterfrom
georgettica:georgettica/nullable-utility
Closed

fix(utility): nullable formatting#13800
Ron Green (georgettica) wants to merge 2 commits into
PowerShell:masterfrom
georgettica:georgettica/nullable-utility

Conversation

@georgettica

@georgettica Ron Green (georgettica) commented Oct 17, 2020

Copy link
Copy Markdown
Contributor

same as #13793

related to #13791

@ghost ghost assigned Ilya (iSazonov) Oct 17, 2020
@ghost

Deleted user (ghost) commented Oct 17, 2020

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

{
if (_autosize.HasValue)
return _autosize.Value;
return _autosize;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can not assign nullable type to non-nullable one.
Below too.

Suggested change
return _autosize;
return _autosize.GetValueOrDefault();

@iSazonov Ilya (iSazonov) Oct 19, 2020

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do the same for rest of changes. See compilation errors.

As this is done on a machine with no formatting, I need to rely on the developer on the other end to verify the code

Co-authored-by: Ilya <darpa@yandex.ru>
@georgettica

Copy link
Copy Markdown
Contributor Author

Conversion issues here aswell, will be fixed tomorrow hopefully

@georgettica

Copy link
Copy Markdown
Contributor Author

cancelling as I think someone else is doing these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants