Skip to content

Commit

Permalink
Merge pull request #126 from doronz88/refactor/lgtm
Browse files Browse the repository at this point in the history
LGTM: Fix LGTM issues.
  • Loading branch information
matan1008 authored Sep 1, 2021
2 parents 1a343d9 + 8dd2aad commit 441faa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions lgtm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
queries:
- exclude: py/clear-text-logging-sensitive-data
- exclude: py/insecure-protocol
2 changes: 0 additions & 2 deletions pymobiledevice3/cli/activation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import time

import click

from pymobiledevice3.cli.cli_common import Command
Expand Down
2 changes: 1 addition & 1 deletion pymobiledevice3/restore/ftab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from construct import Struct, Int32ub, Int32ul, Const, Array, this, Bytes, Computed, Pointer, Default
from construct import Struct, Int32ub, Int32ul, Const, Array, this, Bytes, Pointer, Default

ftab_entry = Struct(
'tag' / Bytes(4),
Expand Down
5 changes: 1 addition & 4 deletions pymobiledevice3/restore/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ def send_filesystem(self, message: dict):
asr.send_payload(filesystem)

def get_build_identity_from_request(self, msg):
args = msg['Arguments']
is_recovery = args['IsRecoveryOS']

# TODO: verify
# TODO: extract build identity from msg
return self.build_identity

def send_buildidentity(self, message: dict):
Expand Down
1 change: 0 additions & 1 deletion pymobiledevice3/restore/tss.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import plistlib
import struct
import time
from pathlib import Path
from uuid import uuid4
Expand Down

0 comments on commit 441faa2

Please sign in to comment.