Skip to content

Sync 0 from s3#40

Merged
tnguyenquy merged 4 commits into
developmentfrom
sync-0-from-s3
Mar 16, 2021
Merged

Sync 0 from s3#40
tnguyenquy merged 4 commits into
developmentfrom
sync-0-from-s3

Conversation

@umermansoor

Copy link
Copy Markdown
Contributor

No description provided.

environmentNameRef.set((String)data.get("envName"));
JSONArray flags = (JSONArray) data.get("flags");
// If the s3 object doesn't exist, attempt a regular sync
if (response.getStatus() != 200) {

@tnguyenquy tnguyenquy Mar 15, 2021

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.

If I'm new user, no flag is not created yet. When calling S3, it would return something not 200 right? If yes, then that's good, else line 80 if (numFlags > 1) would not work. Else, PR is good :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed the condition to be > 0

@tnguyenquy tnguyenquy self-requested a review March 15, 2021 17:41
@tnguyenquy tnguyenquy merged commit 1375974 into development Mar 16, 2021
@tnguyenquy tnguyenquy deleted the sync-0-from-s3 branch March 16, 2021 15:25
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.

2 participants