From 73512e95624314c387b848a811940508e766bd9e Mon Sep 17 00:00:00 2001 From: dbarzin Date: Tue, 14 Feb 2023 21:21:49 +0100 Subject: [PATCH] code quality --- .github/workflows/ci.yml | 6 ++---- pandora-box.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a344a59..850bc4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,15 +15,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - path: main - name: Set up Python uses: actions/setup-python@master with: - python-version: 3.10 + python-version: '3.10' - name: code quality checkout run: | pip install pylint - pylint ./main/pandora-box.py + pylint ./pandora-box.py diff --git a/pandora-box.py b/pandora-box.py index 9fe7788..8412f7e 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -311,7 +311,7 @@ def mount_device(): if partition.device == device.device_node: found = True loop += 1 - if loop < 10: + if found: return partition.mountpoint else: log('No partition mounted')