Skip to content

add FilterQuality diagram#134

Merged
yjbanov merged 2 commits intoflutter:masterfrom
yjbanov:filter-quality-asset
Feb 24, 2021
Merged

add FilterQuality diagram#134
yjbanov merged 2 commits intoflutter:masterfrom
yjbanov:filter-quality-asset

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Feb 23, 2021

Add a diagram showing the effect of FilterQuality on scaled images.

Bonus: exit with a non-zero code when any of the worker jobs fail.

if (jobs.any(_hasJobFailed)) {
// We're already printing the error message. All that's left is set
// the exit code.
exitCode = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you return 1 here and have the exitCode be set outside this? In general code is easier to reason about if it does not cause changes outside of its own state.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Consolidated error reporting into GeneratorException.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that works. thanks.

Copy link
Contributor

@Hixie Hixie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo minor comments
LGTM

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants