tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev
This commit is contained in:
parent
f627a05cf8
commit
eb10aafd7c
57 changed files with 213 additions and 176 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
import type { ProfileRequestDataType } from '../textsecure/WebAPI';
|
||||
import { assert } from './assert';
|
||||
import { assertDev } from './assert';
|
||||
import * as Bytes from '../Bytes';
|
||||
import {
|
||||
PaddedLengths,
|
||||
|
@ -27,8 +27,8 @@ export async function encryptProfileData(
|
|||
uuid,
|
||||
} = conversation;
|
||||
|
||||
assert(profileKey, 'profileKey');
|
||||
assert(uuid, 'uuid');
|
||||
assertDev(profileKey, 'profileKey');
|
||||
assertDev(uuid, 'uuid');
|
||||
|
||||
const keyBuffer = Bytes.fromBase64(profileKey);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue