Previous definition warnings from require statements
View options
- Truncate descriptions
When I start up the GDK, I see these warnings:
16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/email/handler.rb:7: warning: already initialized constant Gitlab::Email::Handler::HANDLERS
16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/email/handler.rb:7: warning: previous definition of HANDLERS was here
16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/request_profiler.rb:5: warning: already initialized constant Gitlab::RequestProfiler::PROFILES_DIR
16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/request_profiler.rb:5: warning: previous definition of PROFILES_DIR was here
In both cases, we have require
statements where we might already be eager loading these classes.
/cc: @godfat, @ahmadsherif
- Show labels
- Show closed items
Link items together to show that they're related or that one is blocking others.