Skip to content

pxToTailwind never returns null #123

Open

Description

@allain

Hello.

I was diving into the code and noticed that pxToTailwind doesn't seem to ever return null but it is documented as possibly returning it.

When round is true, it will find the nearest key in the map and return its value (which is always a string it seems).

When round is false, it will return a string with the exact pixels specified.

If this is corrected, a good number of truthy checks in other conversion functions could likely be removed.

Activity

  1. bernaferrari commented on Mar 8, 2025

    @bernaferrari
    Owner

    Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions