diff options
author | Josh Cooper <joshcooper@users.noreply.github.com> | 2021-08-17 09:46:58 -0700 |
---|---|---|
committer | Josh Cooper <joshcooper@users.noreply.github.com> | 2021-08-17 09:46:58 -0700 |
commit | 54db10d91bb5da04f8f4fb9d66138aba9e5e38a4 (patch) | |
tree | 8a70bd2e0315210d8ec8b6d7cc5e9a659b1c6449 /lib/puppet/provider/cron | |
parent | a3dcc2e0070e6223342a5ce72f9003fd12c1eab9 (diff) | |
download | puppet-cron_core-54db10d91bb5da04f8f4fb9d66138aba9e5e38a4.tar.gz puppet-cron_core-54db10d91bb5da04f8f4fb9d66138aba9e5e38a4.tar.bz2 |
(maint) Fix rubocop errors
Took the safest route and disabled cops either globally in .rubocop.yml
for just for specific cases in lib/
Diffstat (limited to 'lib/puppet/provider/cron')
-rw-r--r-- | lib/puppet/provider/cron/crontab.rb | 2 | ||||
-rw-r--r-- | lib/puppet/provider/cron/filetype.rb | 2 |
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 |