Closed Bug 1190564 Opened 9 years ago Closed 9 years ago

Expose a trivial accessor for account state

Categories

(Firefox for iOS :: Firefox Accounts, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
rnewman
: review+
Details | Review
We have a proliferation of `profile.getAccount() == nil` checks throughout our codebase.

I'd like to add two things:

  hasAccount -> Bool
  hasSyncableAccount -> Bool

The latter is a subset, and implies that no action is needed to make the account usable.
Attached file Pull req.
Attachment #8642611 - Flags: review?
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: