mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
If Progress is instantiated with a max of 0, throw immediately to avoid a divide-by-zero later in toString(). This typically happens if the tool recurses over an empty top-level component, which can happen when a component is moved around in the repo and the developer hasn't cleaned up old empty directories from their git client.