Fixed.


On Tue, Jan 14, 2014 at 11:08 AM, Mark W. Foster
<notifications@github.com>wrote:

> In lib/crichton/middleware/resource_home_response.rb:
>
> > +        req = Rack::Request.new(env)
> > +
> > +        # unless a root path request, delegate to app
> > +        req.path == '/' ? process_home_response(env) : @app.call(env)
> > +      end
> > +
> > +      #
> > +      # get the first supported media type from the HTTP_ACCEPT list of media types in the request header
> > +      def get_supported_media_type(env)
> > +        accepted_media_types(env).detect { |media_type| SUPPORTED_MEDIA_TYPES.include?(media_type) }
> > +      end
> > +
> > +      # Generate data and return in the appropriate Content-Type
> > +      def process_home_response(env)
> > +        media_type = get_supported_media_type(env)
> > +
>
> unnecessary extra line.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mdsol/crichton/pull/101/files#r8871353>
> .
>



-- 
*@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ *

*                         "T h i s   t o o   s h a l l   p a s s"  *
*@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @* *@ @ @ @ @*