Jelajahi Sumber

fix: 修改警告

余尚辉 5 bulan lalu
induk
melakukan
5cd1f1618d
1 mengubah file dengan 2 tambahan dan 5 penghapusan
  1. 2 5
      src/core/voip/constant.py

+ 2 - 5
src/core/voip/constant.py

@@ -10,12 +10,9 @@ player_script_dir = '/code/src/core/voip/scripts/'
 
 
 def murmur3_32(player_file):
-    newplayer_file = ''
     if isinstance(player_file, list):
-        newplayer_file = ','.join(player_file)
-    else:
-        newplayer_file = player_file
-    return abs(mmh3.hash(newplayer_file))
+        player_file = ','.join(player_file)
+    return abs(mmh3.hash(player_file))
 
 
 def build_audio_format():