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

Simplify logfile parsing and drop unreachable codepath. #23

Merged
merged 2 commits into from Dec 6, 2013
Merged

Simplify logfile parsing and drop unreachable codepath. #23

merged 2 commits into from Dec 6, 2013

Conversation

ghost
Copy link

@ghost ghost commented Nov 26, 2013

Simplify a weird use of grep, and drop an unreachable codepath.

On lines 251 to 255, you are exiting if there are less than 2 backups that can be found; then on lines 257 to 261 you exit if there are no backups to be found; this is redundant, if there were no backups to be found you'd already have exited previously.

laurent22 pushed a commit that referenced this pull request Dec 6, 2013
Simplify logfile parsing and drop unreachable codepath.
@laurent22 laurent22 merged commit 9a87c1d into laurent22:master Dec 6, 2013
@laurent22
Copy link
Owner

Looking good, thanks for the pull request!

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