Catch divide-by-zero errors early in license tool (#4382)
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.
Showing
想要评论请 注册 或 登录