Skip to content

Commit

Permalink
solve isValidProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 11, 2024
1 parent 68f3d96 commit 9169cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compressjs/tangram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export class TangramClient {
* @param {string} protocol - The protocol to check.
* @returns {boolean} True if the protocol is "rtmp" or "srt", otherwise false.
*/
static isValidProtocol(protocol) {
isValidProtocol(protocol) {
return protocol === 'rtmp' || protocol === 'srt';
}

Expand All @@ -488,7 +488,7 @@ export class TangramClient {
* @returns instance event object
*/
createEvent(instance_name : string, event_name: string, protocol :string){
if (!this.isValidProtocol(protocol)){
if (! this.isValidProtocol(protocol)){
return null
}
return {
Expand Down

0 comments on commit 9169cf8

Please sign in to comment.