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

Refactor AnnotateRoutes.routes_file_exist? #716

Conversation

nard-tech
Copy link
Collaborator

I refactored AnnotateRoutes.routes_exists? and methods using this.
The points are as follows.

  • Removing puts in AnnotateRoutes.routes_exists?
  • Using File.exist? instead of File.exists? because File.exists? is deprecated
  • Renaming AnnotateRoutes.routes_exists? to AnnotateRoutes.routes_file_exists? in order to make the name of method more explanatory

@drwl
Copy link
Collaborator

drwl commented Jan 16, 2020

@nard-tech this may have gotten into merge conflict from the other PRs. Can you rebase and tag me?

@nard-tech
Copy link
Collaborator Author

@drwl I'm sorry to trouble you. I fixed conflict.

@nard-tech nard-tech requested a review from drwl January 17, 2020 10:29
Copy link
Collaborator

@drwl drwl left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@drwl drwl merged commit 9a8db1b into ctran:develop Jan 18, 2020
@nard-tech nard-tech deleted the feature/refactor_annotate_routes/routes_file_exist branch January 19, 2020 09:14
vfonic pushed a commit to vfonic/annotate_models that referenced this pull request May 8, 2020
I refactored `AnnotateRoutes.routes_exists?` and methods using this.
The points are as follows.

*   Removing `puts` in `AnnotateRoutes.routes_exists?`
*   Using `File.exist?` instead of `File.exists?` because `File.exists?` is deprecated
*   Renaming `AnnotateRoutes.routes_exists?` to `AnnotateRoutes.routes_file_exists?` in order to make the name of method more explanatory
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.

2 participants