Skip to content

Commit

Permalink
Disable sketchy-null check for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jan 13, 2019
1 parent 17e3c3e commit 8c8da38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe

[lints]
all=error
sketchy-null-string=off

[options]
module.name_mapper='.*\(.scss\)' -> 'empty/object'
Expand Down
2 changes: 1 addition & 1 deletion examples/sources/EmbedSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class EmbedSource extends Component<Props, State> {
`${EMBEDLY_ENDPOINT}&url=${encodeURIComponent(url)}`,
null,
(embed) => {
if (entity && entityKey !== null && typeof entityKey !== "undefined") {
if (entity && entityKey) {
const nextContent = content.mergeEntityData(entityKey, {
url: embed.url,
title: embed.title,
Expand Down
2 changes: 1 addition & 1 deletion examples/sources/ImageSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ImageSource extends Component<Props, State> {

e.preventDefault();

if (entity && entityKey !== null && typeof entityKey !== "undefined") {
if (entity && entityKey) {
const nextContent = content.mergeEntityData(entityKey, { src });
nextState = EditorState.push(editorState, nextContent, "apply-entity");
} else {
Expand Down

0 comments on commit 8c8da38

Please sign in to comment.