From 8d12314b30f50ea26fba3be87cd17dbfc29e86f9 Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Sun, 19 Apr 2020 18:30:24 +0300 Subject: [PATCH] Update The Name of Cursor Variable to Reduce Confussion --- cmd/listUsers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/listUsers.go b/cmd/listUsers.go index 20a26cf..c316f39 100644 --- a/cmd/listUsers.go +++ b/cmd/listUsers.go @@ -32,12 +32,12 @@ kamanda auth users -output yaml`, utils.StdOutError(os.Stderr, "Unsupported output!") os.Exit(1) } - token, err := cmd.Flags().GetString("nextPageToken") + nextPageToken, err := cmd.Flags().GetString("nextPageToken") if err != nil { utils.StdOutError(os.Stderr, "Error reading nextPageToken: %s", err.Error()) os.Exit(1) } - getUsers, err := auth.ListUsers(context.Background(), 0, token) + getUsers, err := auth.ListUsers(context.Background(), 0, nextPageToken) if err != nil { utils.StdOutError(os.Stderr, "Error! %s", err.Error()) os.Exit(1)