Skip to content

Commit

Permalink
Fix style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dharaniprakashkm committed Jun 27, 2024
1 parent e75ea49 commit e57d1d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions generated/nidaqmx/_install_daqmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import distro

from nidaqmx._linux_installation_commands import (
get_linux_installation_commands,
LINUX_COMMANDS,
get_linux_installation_commands,
)

_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -370,7 +370,6 @@ def _is_distribution_supported() -> None:
raise NotImplementedError("This function is only supported on Linux.")



def _install_daqmx_driver():
"""
Install the NI-DAQmx driver.
Expand All @@ -392,10 +391,10 @@ def _install_daqmx_driver():
raise click.ClickException(
f"The 'installdriver' command is supported only on Windows and Linux."
)

installed_version = _get_daqmx_installed_version()
download_url, latest_version, release, supported_os = _get_driver_details(platform)

if not download_url:
raise click.ClickException(f"Failed to fetch the download url.")
if not release:
Expand Down
7 changes: 3 additions & 4 deletions src/handwritten/_install_daqmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import distro

from nidaqmx._linux_installation_commands import (
get_linux_installation_commands,
LINUX_COMMANDS,
get_linux_installation_commands,
)

_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -370,7 +370,6 @@ def _is_distribution_supported() -> None:
raise NotImplementedError("This function is only supported on Linux.")



def _install_daqmx_driver():
"""
Install the NI-DAQmx driver.
Expand All @@ -392,10 +391,10 @@ def _install_daqmx_driver():
raise click.ClickException(
f"The 'installdriver' command is supported only on Windows and Linux."
)

installed_version = _get_daqmx_installed_version()
download_url, latest_version, release, supported_os = _get_driver_details(platform)

if not download_url:
raise click.ClickException(f"Failed to fetch the download url.")
if not release:
Expand Down

0 comments on commit e57d1d6

Please sign in to comment.