mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-08-31 16:16:23 +00:00
Fix some comments (#418)
This commit is contained in:
@@ -31,7 +31,7 @@ type DeleteOp struct {
|
|||||||
// deleteContexts deletes context entries one by one.
|
// deleteContexts deletes context entries one by one.
|
||||||
func (op DeleteOp) Run(_, stderr io.Writer) error {
|
func (op DeleteOp) Run(_, stderr io.Writer) error {
|
||||||
for _, ctx := range op.Contexts {
|
for _, ctx := range op.Contexts {
|
||||||
// TODO inefficency here. we open/write/close the same file many times.
|
// TODO inefficiency here. we open/write/close the same file many times.
|
||||||
deletedName, wasActiveContext, err := deleteContext(ctx)
|
deletedName, wasActiveContext, err := deleteContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "error deleting context \"%s\"", deletedName)
|
return errors.Wrapf(err, "error deleting context \"%s\"", deletedName)
|
||||||
|
Reference in New Issue
Block a user