Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Reorganize BluetoothSite logic #832

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Reorganize BluetoothSite logic #832

merged 1 commit into from
Sep 20, 2016

Conversation

cco3
Copy link
Contributor

@cco3 cco3 commented Sep 20, 2016

Instead of:

  1. Converting bytes to a string,
  2. Adding to a string builder,
  3. Converting back to bytes, and
  4. Writing bytes to a file

we just write the bytes directly to a file.

Copy link
Contributor

@hayesjordan hayesjordan left a comment

Choose a reason for hiding this comment

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

One nit otherwise LGTM

try {
mHtml.close();
} catch (IOException e) {
Log.e(TAG, "Failed to write to file", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

Failed to close file

Instead of:
1. Converting bytes to a string,
2. Adding to a string builder,
3. Converting back to bytes, and
4. Writing bytes to a file

we just write the bytes directly to a file.
@cco3 cco3 merged commit 8fbfb2c into google:master Sep 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants