Skip to content

Commit

Permalink
Remove double negation
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Dec 22, 2021
1 parent 1eb5bfd commit cfdd8b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const enableFleetServerIfNecessary = async (esClient: Client, version: st
rest_total_hits_as_int: true,
});

if (!!res.hits.total) {
if (res.hits.total) {
return;
}

Expand Down

0 comments on commit cfdd8b3

Please sign in to comment.