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

Posible refactorización Inline Temp #16

Open
mbravop opened this issue Jan 12, 2023 · 0 comments
Open

Posible refactorización Inline Temp #16

mbravop opened this issue Jan 12, 2023 · 0 comments

Comments

@mbravop
Copy link

mbravop commented Jan 12, 2023

Hola, estuve revisando el repositorio y me fijé que en la clase CashDispenser.java, el método isSufficientCashAvailable tiene una lógica sencilla pero toma muchos pasos para realizar, hasta la aplicación del If es redundante:

image

Es por esto que he pensado en una manera de refactorizarlo, aplicando inline temp para que el código disminuya pero sea igual de entendible. Así:

image

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

No branches or pull requests

1 participant