diff --git a/branca/colormap.py b/branca/colormap.py index d354f83..58bc0b2 100644 --- a/branca/colormap.py +++ b/branca/colormap.py @@ -377,9 +377,7 @@ def to_step( method = ( "quantiles" if quantiles is not None - else method - if method is not None - else "linear" + else method if method is not None else "linear" ) if method.lower().startswith("lin"): if n is None: