Pārlūkot izejas kodu

CLI: fix eslint checks

iorveth 4 gadi atpakaļ
vecāks
revīzija
15c21b66fe

+ 3 - 3
cli/src/commands/content/createChannel.ts

@@ -38,11 +38,11 @@ export default class CreateChannelCommand extends ContentDirectoryCommandBase {
     const actor = await this.getActor(context)
 
     if (input) {
-      let channelCreationParametersInput = await getInputJson<ChannelCreationParametersInput>(input)
+      const channelCreationParametersInput = await getInputJson<ChannelCreationParametersInput>(input)
 
       this.jsonPrettyPrint(JSON.stringify(channelCreationParametersInput))
 
-      let channelMetadata = new ChannelMetadata()
+      const channelMetadata = new ChannelMetadata()
       channelMetadata.setTitle(channelCreationParametersInput.meta.title!)
       channelMetadata.setDescription(channelCreationParametersInput.meta.description!)
       channelMetadata.setIsPublic(channelCreationParametersInput.meta.isPublic!)
@@ -55,7 +55,7 @@ export default class CreateChannelCommand extends ContentDirectoryCommandBase {
 
       const meta = this.createType('Bytes', '0x' + Buffer.from(serialized).toString('hex'))
 
-      let channelCreationParameters: ChannelCreationParameters = {
+      const channelCreationParameters: ChannelCreationParameters = {
         assets: channelCreationParametersInput.assets,
         meta,
         reward_account: channelCreationParametersInput.reward_account,

+ 3 - 3
cli/src/commands/content/updateChannel.ts

@@ -48,9 +48,9 @@ export default class UpdateChannelCommand extends ContentDirectoryCommandBase {
     const actor = await this.getActor(context)
 
     if (input) {
-      let channelUpdateParametersInput = await getInputJson<ChannelUpdateParametersInput>(input)
+      const channelUpdateParametersInput = await getInputJson<ChannelUpdateParametersInput>(input)
 
-      let channelMetadata = new ChannelMetadata()
+      const channelMetadata = new ChannelMetadata()
       channelMetadata.setTitle(channelUpdateParametersInput.new_meta.title!)
       channelMetadata.setDescription(channelUpdateParametersInput.new_meta.description!)
       channelMetadata.setIsPublic(channelUpdateParametersInput.new_meta.isPublic!)
@@ -63,7 +63,7 @@ export default class UpdateChannelCommand extends ContentDirectoryCommandBase {
 
       const meta = this.createType('Bytes', '0x' + Buffer.from(serialized).toString('hex'))
 
-      let channelUpdateParameters: ChannelUpdateParameters = {
+      const channelUpdateParameters: ChannelUpdateParameters = {
         assets: channelUpdateParametersInput.assets,
         new_meta: meta,
         reward_account: channelUpdateParametersInput.reward_account,