Skip to content

Commit 46b017d

Browse files
committed
minor cleanup
1 parent 466424b commit 46b017d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- puppet-check-ruby-<< parameters.ruby-version >>
1818
- run:
1919
name: package prereqs install
20-
command: apt-get update && apt-get install -y cmake pkg-config openssl
20+
command: apt-get update && apt-get install -y cmake pkg-config
2121
- run:
2222
name: bundler install
2323
command: bundle install --retry=3

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: checkout
2727
uses: actions/checkout@v4
2828
- name: install some prerequisite packages
29-
run: apt-get update && apt-get install -y cmake pkg-config openssl
29+
run: apt-get update && apt-get install -y cmake pkg-config
3030
- name: bundler install
3131
run: bundle install --retry=3
3232
- name: run tests

lib/puppet-check/ruby_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def self.ruby(files, style, rc_args)
1818
files.each do |file|
1919
# check ruby syntax
2020
# prevents ruby code from actually executing the input ruby file
21-
catch(:good) { instance_eval("BEGIN {throw :good}; #{File.read(file)} #BEGIN {throw :good}; ruby_file_content", file) }
21+
catch(:good) { instance_eval("BEGIN {throw :good}; #{File.read(file)} # BEGIN {throw :good}; ruby_file_content", file) }
2222
rescue ScriptError, StandardError => err
2323
PuppetCheck.files[:errors][file] = err.to_s.gsub("#{file}:", '').split("\n")
2424
else

0 commit comments

Comments
 (0)