Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix listing apps conditional #71

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

adamreese
Copy link
Member

No description provided.

@@ -45,7 +45,7 @@ impl AppsCommand {
AppsCommand::List(cmd) => {
let client = create_cloud_client(cmd.common.deployment_env_id.as_deref()).await?;
let mut app_list_page = client.list_apps(DEFAULT_APPLIST_PAGE_SIZE, None).await?;
if app_list_page.total_items > 0 {
if app_list_page.total_items < 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be equal to zero as well

Suggested change
if app_list_page.total_items < 0 {
if app_list_page.total_items <= 0 {

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch

Signed-off-by: Adam Reese <adam@reese.io>
@adamreese adamreese merged commit 37b6016 into fermyon:main Aug 24, 2023
8 checks passed
@adamreese adamreese deleted the fix/list-apps branch August 24, 2023 04:01
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.

None yet

3 participants