Skip to content

Commit

Permalink
lestarch: more static analysis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed May 9, 2022
1 parent b3efca4 commit ff3a181
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/fprime/common/models/serialize/bool_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def validate(cls, val):

def serialize(self):
"""Serialize a boolean value"""
if self.val is None:
if self._val is None:
raise NotInitializedException(type(self))
return struct.pack("B", self.TRUE if self._val else self.FALSE)

Expand Down
1 change: 0 additions & 1 deletion src/fprime/fbuild/gcovr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Dict, List, Tuple, Union

from .target import ExecutableAction, Target, TargetScope, CompositeTarget
from .types import MissingBuildCachePath

TEMPORARY_DIRECTORY = "{{AUTOCODE}}"

Expand Down
2 changes: 0 additions & 2 deletions src/fprime/util/build_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ def utility_entry(args):
parsed, cmake_args, make_args, parser, runners = parse_args(args)

try:
cwd = Path(parsed.path)

try:
target = get_target(parsed)
build_type = target.build_type
Expand Down

0 comments on commit ff3a181

Please sign in to comment.