Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env rake
# encoding: utf-8
# frozen_string_literal: true

require 'rake/testtask'
Expand Down Expand Up @@ -46,5 +45,4 @@ task :changelog do
Rake::Task[:changelog].execute
rescue LoadError
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'

end
1 change: 0 additions & 1 deletion controls/patches.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

# copyright: 2016, Christoph Hartmann
Expand Down
5 changes: 2 additions & 3 deletions libraries/linux_updates.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

# copyright: 2016, Christoph Hartmann
Expand Down Expand Up @@ -49,7 +48,7 @@ def updates
end

def uptodate?
return nil if @update_mgmt.nil?
return if @update_mgmt.nil?

u = @update_mgmt.updates
return false if u.nil? || !u['available'].empty?
Expand Down Expand Up @@ -219,7 +218,7 @@ def updates
unless cmd.exit_status.zero?
# essentially we want https://github.com/chef/inspec/issues/1205
warn 'Could not determine patch status.'
return nil
return
end

first = cmd.stdout.index('{')
Expand Down