Skip to content

Commit dc23575

Browse files
committed
Fix compil error
1 parent 1c60544 commit dc23575

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

www/js/filters.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,9 @@ angular.module('cesium.filters', ['cesium.config', 'cesium.platform', 'pascalpre
411411
'ngInject';
412412
return function(input, opts) {
413413
if (!input || input.length < 43) return '';
414-
var result = (!opts || opts.full !== true)
414+
var result = (!opts || opts.full !== true) ?
415415
// See RFC0016
416-
? (input.substr(0,4) + '…' + input.substr(input.length - 4))
417-
: input;
416+
(input.substr(0,4) + '…' + input.substr(input.length - 4)) : input;
418417
// If given (e.g. already computed) use the existing CHK
419418
if (opts && opts.checksum) {
420419
result += ':' + opts.checksum;

www/js/services/crypto-services.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,9 +1390,9 @@ angular.module('cesium.crypto.services', ['cesium.utils.services'])
13901390
*/
13911391
function pkChecksum(pubkey) {
13921392
// Remove leading '1' (see https://forum.duniter.org/t/format-de-checksum/7616)
1393-
var signPk_int8 = pubkey && pubkey.length === 44 && pubkey.charAt(0) === '1'
1394-
? CryptoUtils.util.decode_base58(pubkey.substr(1))
1395-
: CryptoUtils.util.decode_base58(pubkey);
1393+
var signPk_int8 = pubkey && pubkey.length === 44 && pubkey.charAt(0) === '1' ?
1394+
CryptoUtils.util.decode_base58(pubkey.substr(1)) :
1395+
CryptoUtils.util.decode_base58(pubkey);
13961396
return CryptoUtils.util.encode_base58(
13971397
CryptoUtils.util.crypto_hash_sha256(
13981398
CryptoUtils.util.crypto_hash_sha256(signPk_int8))

0 commit comments

Comments
 (0)