Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant error type in ReusableFavoritingTests.swift #1538

Merged
merged 2 commits into from
Oct 22, 2022

Conversation

Jager-yoo
Copy link
Contributor

Hi! I removed a redundant FavoriteError struct in ReusableFavoritingTests.swift
And changed the hard-coded AlertState's title so that it's easier to maintain.

Comment on lines 85 to 80
title: TextState("Favoriting failed.")
title: TextState(FavoriteError().localizedDescription)
Copy link
Member

Choose a reason for hiding this comment

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

Can you revert this one change assuming things still pass with "Favoriting failed."? We prefer to assert against concrete data where possible,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I reverted it.

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks! Just one small request.

@mbrandonw mbrandonw merged commit 95af6c1 into pointfreeco:main Oct 22, 2022
@Jager-yoo Jager-yoo deleted the remove-redundant-type branch October 22, 2022 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants