We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb954c9 commit a3e50f0Copy full SHA for a3e50f0
src/Afip.js
@@ -156,10 +156,11 @@ Afip.prototype.GetServiceTA = async function(service, firstTry = true) {
156
sign : taData.credentials.sign
157
}
158
159
- // Throw error if this is not the first try to get token authorization
160
- else if (firstTry === false){
161
- throw new Error('Error getting Token Autorization');
162
- }
+ }
+
+ // Throw error if this is not the first try to get token authorization
+ if (firstTry === false){
163
+ throw new Error('Error getting Token Autorization');
164
165
166
// Create token authorization file
0 commit comments