Permalink
Browse files

Correctly handle undefined carrier. #97

  • Loading branch information...
1 parent 776231d commit d48b2e67a94750b0733f94f6824bd74568fca599 @typpo committed Dec 11, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/text.js
View
@@ -34,7 +34,7 @@ function sendText(phone, message, carrier, region, cb) {
region = region || 'us';
var providers_list;
- if (carrier !== null) {
+ if (carrier) {
providers_list = carriers[carrier];
} else {
providers_list = providers[region];

0 comments on commit d48b2e6

Please sign in to comment.