Skip to content

Commit

Permalink
Simplify usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shopmike committed Sep 10, 2019
1 parent b316ff8 commit b6547f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/liquid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module Liquid
require 'liquid/tokenizer'
require 'liquid/parse_context'
require 'liquid/partial_cache'
require 'liquid/usage'

# Load all the tags of the standard library
#
Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/standardfilters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def at_most(input, n)

def default(input, default_value = ''.freeze)
if !input || input.respond_to?(:empty?) && input.empty?
Usage.increment("liquid.default_filter_received_false_value") if input == false # See https://github.com/Shopify/liquid/issues/1127
Usage.increment("default_filter_received_false_value") if input == false # See https://github.com/Shopify/liquid/issues/1127
default_value
else
input
Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/usage.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Liquid
module Usage
def self.increment(name, sample_rate: 0.1, tags: {})
def self.increment(name)
end
end
end

0 comments on commit b6547f3

Please sign in to comment.