[PR #105] [CLOSED] Fix zero subcommand bug #231

Closed
opened 2026-02-28 00:41:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/105
Author: @alistairjordan
Created: 3/10/2021
Status: Closed

Base: masterHead: fix_zero_subcommands_bug


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 main.go (+2 -1)

📄 Description

Currently, when running with a flag, but no subcommand a panic occurs:

panic: runtime error: index out of range [0] with length 0

Added a conditional to if statement to stop referencing non existant index.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/105 **Author:** [@alistairjordan](https://github.com/alistairjordan) **Created:** 3/10/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix_zero_subcommands_bug` --- ### 📝 Commits (1) - [`50a76d2`](https://github.com/Telmate/proxmox-api-go/commit/50a76d287c2b38e25b4b6f675b35c5d54d8a5a0f) fix zero subcommand bug ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+2 -1) </details> ### 📄 Description Currently, when running with a flag, but no subcommand a panic occurs: panic: runtime error: index out of range [0] with length 0 Added a conditional to if statement to stop referencing non existant index. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#231
No description provided.