Fixes according to SonerLint

This commit is contained in:
kokarare1212
2021-07-31 20:42:13 +09:00
parent 3f81de1610
commit bee0ad3ec1
14 changed files with 57 additions and 59 deletions

View File

@@ -31,7 +31,7 @@ class AesAudioDecrypt(AudioDecrypt):
cipher = None
decrypt_count = 0
decrypt_total_time = 0
key: bytes = None
key: bytes
def __init__(self, key: bytes):
self.key = key
@@ -57,7 +57,7 @@ class AesAudioDecrypt(AudioDecrypt):
iv += self.iv_diff
self.decrypt_total_time += time.time_ns()
self.decrypt_total_time += time.time_ns() - start
self.decrypt_count += 1
return new_buffer