Skip to content

Commit 57b6ebc

Browse files
refactor: constructor calls
1 parent f8a8fd2 commit 57b6ebc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/dev/resms/ReSMS.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public class ReSMS {
1818
* @param timeoutSeconds HTTP request timeout in seconds
1919
*/
2020
public ReSMS(@NonNull String apiKey, int timeoutSeconds) {
21-
ReSMSConfig config = new ReSMSConfig(apiKey, timeoutSeconds);
22-
this.smsService = new SmsService(config);
21+
this(new ReSMSConfig(apiKey, timeoutSeconds));
2322
}
2423

2524
/**
@@ -28,8 +27,7 @@ public ReSMS(@NonNull String apiKey, int timeoutSeconds) {
2827
* @param apiKey API key for authentication
2928
*/
3029
public ReSMS(@NonNull String apiKey) {
31-
ReSMSConfig config = new ReSMSConfig(apiKey);
32-
this.smsService = new SmsService(config);
30+
this(new ReSMSConfig(apiKey));
3331
}
3432

3533
public ReSMS(@NonNull ReSMSConfig config) {

0 commit comments

Comments
 (0)