Skip to content

Commit b326948

Browse files
committed
kubectl: Use Fprintf
Signed-off-by: Gaurav Singh <[email protected]> Fix typo Signed-off-by: Gaurav Singh <[email protected]> Change Fprintf to Fprintln Signed-off-by: Gaurav Singh <[email protected]> Use %q instead of %s Signed-off-by: Gaurav Singh <[email protected]> Change %q to %s
1 parent 4e8b56e commit b326948

File tree

1 file changed

+2
-2
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/get

1 file changed

+2
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/get/get.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,9 @@ func (o *GetOptions) Run(f cmdutil.Factory, cmd *cobra.Command, args []string) e
586586
if trackingWriter.Written == 0 && !o.IgnoreNotFound && len(allErrs) == 0 {
587587
// if we wrote no output, and had no errors, and are not ignoring NotFound, be sure we output something
588588
if allResourcesNamespaced {
589-
fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found in %s namespace.", o.Namespace))
589+
fmt.Fprintf(o.ErrOut, "No resources found in %s namespace.\n", o.Namespace)
590590
} else {
591-
fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found"))
591+
fmt.Fprintln(o.ErrOut, "No resources found")
592592
}
593593
}
594594
return utilerrors.NewAggregate(allErrs)

0 commit comments

Comments
 (0)