Skip to content

Commit 80d5b01

Browse files
committed
Code style
1 parent 784f0a4 commit 80d5b01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sass/embedded/host/structifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def to_struct(obj, *symbols)
1717
next unless obj.key?(key)
1818

1919
value = obj[key]
20-
if value.respond_to? :call
20+
if value.respond_to?(:call)
2121
struct.define_singleton_method key do |*args, **kwargs|
2222
value.call(*args, **kwargs)
2323
end

lib/sass/value/function.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(signature, callback)
2929
# @return [::Boolean]
3030
def ==(other)
3131
if id.nil?
32-
other.equal? self
32+
other.equal?(self)
3333
else
3434
other.is_a?(Sass::Value::Function) && other.id == id
3535
end

0 commit comments

Comments
 (0)