Skip to content

Commit f982b0c

Browse files
committed
return response as well even if async
1 parent 4ffe0aa commit f982b0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/signed-xml.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function RSASHA1() {
9090
signer.update(signedInfo)
9191
var res = signer.sign(signingKey, 'base64')
9292
if (callback) callback(null, res)
93-
else return res
93+
return res
9494
}
9595

9696
/**
@@ -102,7 +102,7 @@ function RSASHA1() {
102102
verifier.update(str)
103103
var res = verifier.verify(key, signatureValue, 'base64')
104104
if (callback) callback(null, res)
105-
else return res
105+
return res
106106
}
107107

108108
this.getAlgorithmName = function() {
@@ -127,7 +127,7 @@ function RSASHA256() {
127127
signer.update(signedInfo)
128128
var res = signer.sign(signingKey, 'base64')
129129
if (callback) callback(null, res)
130-
else return res
130+
return res
131131
}
132132

133133
/**
@@ -139,7 +139,7 @@ function RSASHA256() {
139139
verifier.update(str)
140140
var res = verifier.verify(key, signatureValue, 'base64')
141141
if (callback) callback(null, res)
142-
else return res
142+
return res
143143
}
144144

145145
this.getAlgorithmName = function() {
@@ -163,7 +163,7 @@ function RSASHA512() {
163163
signer.update(signedInfo)
164164
var res = signer.sign(signingKey, 'base64')
165165
if (callback) callback(null, res)
166-
else return res
166+
return res
167167
}
168168

169169
/**
@@ -175,7 +175,7 @@ function RSASHA512() {
175175
verifier.update(str)
176176
var res = verifier.verify(key, signatureValue, 'base64')
177177
if (callback) callback(null, res)
178-
else return res
178+
return res
179179
}
180180

181181
this.getAlgorithmName = function() {

0 commit comments

Comments
 (0)