Skip to content

Commit 734ada0

Browse files
committed
remove rendundant condition
1 parent 1b33ea8 commit 734ada0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

libs/url/builder.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,11 @@ module.exports.buildURL = function(opts) {
9393
expiryTimestamp : expiryTimestamp
9494
});
9595

96-
if(opts.signed === true) {
97-
if(expiryTimestamp && expiryTimestamp != DEFAULT_TIMESTAMP) {
98-
queryParameters.set(TIMESTAMP_PARAMETER, expiryTimestamp);
99-
}
100-
queryParameters.set(SIGNATURE_PARAMETER, urlSignature);
101-
urlObject.search = queryParameters.toString();
96+
if(expiryTimestamp && expiryTimestamp != DEFAULT_TIMESTAMP) {
97+
queryParameters.set(TIMESTAMP_PARAMETER, expiryTimestamp);
10298
}
103-
99+
queryParameters.set(SIGNATURE_PARAMETER, urlSignature);
100+
urlObject.search = queryParameters.toString();
104101
}
105102

106103

0 commit comments

Comments
 (0)