facebookarchive/draft-js

Improve style by removing boolean param in `getCharacterRemovalRange.js`

Open

#1 116 ouverte le 3 avr. 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (22 554 stars) (2 646 forks)batch import
enhancementgood first issue

Description

A recent change added two boolean flag params to getCharacterRemovalRange.js. Boolean params generally make code less readable and maintainable - this is not worth blocking a PR at this time, but it would be great to update this file and the callsites to call two methods instead of passing in different boolean params.

Guide contributeur