Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

stop warnings on -w #132

Merged
merged 1 commit into from May 22, 2015
Merged

stop warnings on -w #132

merged 1 commit into from May 22, 2015

Conversation

ko1
Copy link
Contributor

@ko1 ko1 commented May 8, 2014

Stop warnings on -w about "uninitialized instance variables" and "private attribute?".

@@ -369,7 +370,8 @@ def dont_reload(*glob)

private

attr_reader :register_path
# attr_reader :register_path warn on -w (private attribute)
def register_path; @register_path ||= nil; end
Copy link
Member

Choose a reason for hiding this comment

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

In this case I think we need to change all other instances of @register_path to use this method.

zzak pushed a commit that referenced this pull request May 22, 2015
@zzak zzak merged commit 7ca9e9d into sinatra:master May 22, 2015
zzak pushed a commit to zzak/sinatra-contrib that referenced this pull request Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants