aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/provider
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/cron/crontab.rb2
-rw-r--r--lib/puppet/provider/cron/filetype.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/cron/crontab.rb b/lib/puppet/provider/cron/crontab.rb
index 9144725..12ad7f1 100644
--- a/lib/puppet/provider/cron/crontab.rb
+++ b/lib/puppet/provider/cron/crontab.rb
@@ -207,7 +207,7 @@ Puppet::Type.type(:cron).provide(:crontab, parent: Puppet::Provider::ParsedFile,
envs << record[:line]
record[:skip] = true
end
- when :blank # rubocop: disable Lint/EmptyWhen
+ when :blank
# nothing
else
if name
diff --git a/lib/puppet/provider/cron/filetype.rb b/lib/puppet/provider/cron/filetype.rb
index c381afa..153285d 100644
--- a/lib/puppet/provider/cron/filetype.rb
+++ b/lib/puppet/provider/cron/filetype.rb
@@ -26,7 +26,7 @@ class Puppet::Provider::Cron
# implementation in the future. This way, we can refactor all three of
# our cron file types into a common crontab file type.
newfiletype(:crontab) do
- def initialize(user)
+ def initialize(user) # rubocop:disable Lint/MissingSuper
self.path = user
end