Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
6d3809a4
Commit
6d3809a4
authored
Dec 05, 2018
by
Taylor Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(kube): Gets rid of superfluous Sprintf call
Signed-off-by:
Taylor Thomas
<
thomastaylor312@gmail.com
>
parent
88af9659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
client.go
pkg/kube/client.go
+1
-2
No files found.
pkg/kube/client.go
View file @
6d3809a4
...
...
@@ -220,8 +220,7 @@ func (c *Client) Get(namespace string, reader io.Reader) (string, error) {
buf
:=
new
(
bytes
.
Buffer
)
printFlags
:=
get
.
NewHumanPrintFlags
()
for
t
,
ot
:=
range
objs
{
kindHeader
:=
fmt
.
Sprintf
(
"==> %s
\n
"
,
t
)
if
_
,
err
=
buf
.
WriteString
(
kindHeader
);
err
!=
nil
{
if
_
,
err
=
fmt
.
Fprintf
(
buf
,
"==> %s
\n
"
,
t
);
err
!=
nil
{
return
""
,
err
}
typePrinter
,
_
:=
printFlags
.
ToPrinter
(
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment