Skip to content

Conversation

@christopherdro
Copy link
Contributor

No description provided.

RNMail/RNMail.m Outdated
Copy link
Owner

Choose a reason for hiding this comment

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

would a switch case be easy to maintain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switch statements don´t work with NSStrings, only with integers.

RNMail/RNMail.m Outdated
Copy link
Owner

Choose a reason for hiding this comment

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

bail out early. check if attachment is available first and then attachment[path].

Also, If name is optional then why check for it here? Did you mean type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry for the typo. Should be fixed

@chirag04
Copy link
Owner

chirag04 commented Sep 7, 2015

Awesome. one last nit i guess and then will merge it.

chirag04 added a commit that referenced this pull request Sep 8, 2015
@chirag04 chirag04 merged commit 5d442e6 into chirag04:master Sep 8, 2015
@chirag04
Copy link
Owner

chirag04 commented Sep 8, 2015

👍 Thanks @christopherdro

@christopherdro
Copy link
Contributor Author

👍 np!

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