Skip to content

Commit 6ea1003

Browse files
committed
Cleanup
1 parent 27312a0 commit 6ea1003

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head']
13+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', 'ruby-head']
1414
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
1515
steps:
1616
- uses: actions/checkout@v3
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run Tests
2323
run: bundle exec rake test
2424
env:
25-
RUBYOPT: ${{ startsWith(matrix.ruby, 'ruby-head') && '--enable=frozen-string-literal' || '' }}
25+
RUBYOPT: "--enable=frozen_string_literal"

lib/net/scp.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,7 @@ def download!(remote, local=nil, options={}, &progress)
329329
# (:verbose, :recursive, :preserve). Returns the command-line as a
330330
# string, ready to execute.
331331
def scp_command(mode, options)
332-
command =
333-
if RUBY_VERSION < "2.3"
334-
"scp "
335-
else
336-
+"scp "
337-
end
332+
command = String.new("scp ")
338333
command << (mode == :upload ? "-t" : "-f")
339334
command << " -v" if options[:verbose]
340335
command << " -r" if options[:recursive]

0 commit comments

Comments
 (0)