Skip to content

feat(queries): Add upload url for datasets and new queries commands#23

Merged
pthurlow merged 3 commits intomainfrom
feat/upload-url
Mar 27, 2026
Merged

feat(queries): Add upload url for datasets and new queries commands#23
pthurlow merged 3 commits intomainfrom
feat/upload-url

Conversation

@pthurlow
Copy link
Copy Markdown
Collaborator

No description provided.

claude[bot]
claude bot previously approved these changes Mar 27, 2026
claude[bot]
claude bot previously approved these changes Mar 27, 2026
if ch == '/' && i + 1 < len && chars[i + 1] == '*' {
let start = i;
i += 2;
while i + 1 < len && !(chars[i] == '*' && chars[i + 1] == '/') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: unterminated block comment (e.g., /* no closing) drops the final character. When the while exits with i == len - 1 (EOF), if i + 1 < len is false so i stays at len - 1, and chars[start..i] omits the last char. Fix: change the condition to while i < len and consume a whole byte at a time, or just clamp i to len before the slice:

Suggested change
while i + 1 < len && !(chars[i] == '*' && chars[i + 1] == '/') {
if i + 1 < len { i += 2; } else { i = len; }

};

if !resp.status().is_success() {
use crossterm::style::Stylize;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: use crossterm::style::Stylize; is already imported at the top of the module (line 2). The inner use inside this block and the one a few lines down are redundant — safe to remove.

@pthurlow pthurlow merged commit b0bfc13 into main Mar 27, 2026
7 checks passed
@pthurlow pthurlow deleted the feat/upload-url branch March 27, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant