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

Merge the duplicate functions #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Zzzwj666
Copy link

Merge the duplicate functions is_university_domain and get_university into a new function find_university

@mudongliang
Copy link
Member

为什么有两个一模一样的commit信息?

@Zzzwj666
Copy link
Author

把原来的两个函数删了又重新commit了一次

@mudongliang
Copy link
Member

已指定reviewers,请等待reviewer反馈

Copy link
Member

@tttturtle-russ tttturtle-russ left a comment

Choose a reason for hiding this comment

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

感觉改的太复杂了,逻辑保持返回university或None就行,没必要增加参数,python中None和False在if中效果应该是差不多的。

@tttturtle-russ
Copy link
Member

经过测试,这两个函数好像还不能合并 :(

@tttturtle-russ
Copy link
Member

这样看来使用一个标志参数似乎是一个解决办法, @mudongliang @jxlpzqc 怎么看

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