[tor-commits] [pluggable-transports/snowflake-webext] 03/06: refactor: mark a method as static
gitolite role
git at cupani.torproject.org
Thu Nov 10 15:23:19 UTC 2022
This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.
commit 0233e36e576ba53f03927f927af8a59aa231a80d
Author: WofWca <wofwca at protonmail.com>
AuthorDate: Wed Nov 9 00:46:53 2022 +0400
refactor: mark a method as static
---
snowflake.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/snowflake.js b/snowflake.js
index 30b3296..ca7566d 100644
--- a/snowflake.js
+++ b/snowflake.js
@@ -134,7 +134,7 @@ class Snowflake {
log('incorrect relay url protocol');
return false;
}
- if (!this.checkRelayPattern(this.config.allowedRelayPattern, hostname)) {
+ if (!Snowflake.checkRelayPattern(this.config.allowedRelayPattern, hostname)) {
log('relay url hostname does not match allowed pattern');
return false;
}
@@ -192,7 +192,7 @@ class Snowflake {
* @return {boolean}
* @private
*/
- checkRelayPattern(pattern, str) {
+ static checkRelayPattern(pattern, str) {
if (typeof pattern !== "string") {
throw 'invalid checkRelayPattern input: pattern';
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list