From c858f70d076dc44f6bf1ab1f7acb1fc13a12ab1b Mon Sep 17 00:00:00 2001 From: gfyoung Date: Mon, 22 Oct 2018 07:00:50 +0000 Subject: Enable frozen string for lib/gitlab/*.rb --- lib/gitlab/popen.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/gitlab/popen.rb') diff --git a/lib/gitlab/popen.rb b/lib/gitlab/popen.rb index d0cb7c1a7cf..7fa00d0c68c 100644 --- a/lib/gitlab/popen.rb +++ b/lib/gitlab/popen.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'fileutils' require 'open3' @@ -11,7 +13,7 @@ module Gitlab def popen(cmd, path = nil, vars = {}, &block) result = popen_with_detail(cmd, path, vars, &block) - [result.stdout << result.stderr, result.status&.exitstatus] + ["#{result.stdout}#{result.stderr}", result.status&.exitstatus] end # Returns Result -- cgit v1.2.1