refactor: Remove useless LOCK

This commit is contained in:
Dazed 2023-04-06 23:43:00 -05:00
parent 4a989b53ad
commit e782129e0a

View file

@ -210,8 +210,6 @@ def searchCodes(page, pbar):
return tokens
def translateGPT(t, history):
global LOCK
# If there isn't any Japanese in the text just return it
pattern = r'[一-龠]+|[ぁ-ゔ]+|[ァ-ヴー]+'
if not re.search(pattern, t):