Skip to content

Commit

Permalink
compose box: Fix a nullability nit in type signature.
Browse files Browse the repository at this point in the history
The logic here is already correct, with a condition just under this;
just need to make the signature agree.

This issue is found by Flow when we unify the ComposeBox files,
coming soon -- Flow unfortunately doesn't check *.android.js.
  • Loading branch information
gnprice committed Nov 1, 2018
1 parent 95f41fc commit 711e786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compose/ComposeBox.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type State = {
selection: InputSelectionType,
};

export const updateTextInput = (textInput: TextInput, text: string): void => {
export const updateTextInput = (textInput: ?TextInput, text: string): void => {
if (!textInput) {
// Depending on the lifecycle events this function is called from,
// this might not be set yet.
Expand Down

0 comments on commit 711e786

Please sign in to comment.