Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix unused variable warning #222

Merged
merged 1 commit into from

2 participants

@amarshall

This fixes the following warning that occurs when requiring Tilt:

warning: assigned but unused variable - prefix

@judofyr
Collaborator

Looks good to me.

@judofyr judofyr merged commit 6550b4a into rtomayko:master
@amarshall amarshall deleted the amarshall:fix-unused-variable branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 6, 2013
  1. @amarshall

    Fix unused variable warning

    amarshall authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tilt/mapping.rb
View
2  lib/tilt/mapping.rb
@@ -148,7 +148,7 @@ def new(file, line=nil, options={}, &block)
#
# @return [template class]
def [](file)
- prefix, ext = split(file)
+ _, ext = split(file)
ext && lookup(ext)
end
Something went wrong with that request. Please try again.