Skip to content

Commit

Permalink
Remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 24, 2024
1 parent f5a54d3 commit a18384f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/globaleaks_eph_fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def write(self, data):
with self.mutex:
if isinstance(data, str):
data = data.encode('utf-8')
encrypted_data = self.enc.update(data)
os.write(self.fd, encrypted_data)
os.write(self.fd, self.enc.update(data))
self.position += len(data)

def read(self, size=None):
Expand Down

0 comments on commit a18384f

Please sign in to comment.