summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/timesheet_resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hcl/timesheet_resource.rb b/lib/hcl/timesheet_resource.rb
index f5ea47f..54c74f1 100644
--- a/lib/hcl/timesheet_resource.rb
+++ b/lib/hcl/timesheet_resource.rb
@@ -29,7 +29,7 @@ module HCl
when Hash
res[:opts] = opt_or_cb
url = args.pop
- res[:url_cb] ||= ->() { url }
+ res[:url_cb] = ->() { url } if url
end
end
end