Skip to content

Commit

Permalink
Fix SonarQube warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Nov 23, 2023
1 parent 1440bf0 commit dfa2fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resultsdb/parsers/api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def parse_submit_time(cls, v):
@validator("testcase")
def testcase_must_be_valid(cls, v):
if isinstance(v, dict) and not v.get("name"):
raise ""
raise ValueError("testcase name must be non-empty")
return v

@validator("outcome")
Expand Down
2 changes: 1 addition & 1 deletion resultsdb/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<nav class="navbar navbar-expand-lg bg-light fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="{{ url_for('favicon') }}" width="32" height="32" class="d-inline-block">
<img src="{{ url_for('favicon') }}" width="32" height="32" class="d-inline-block" alt="">
<strong>ResultsDB</strong>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
Expand Down

0 comments on commit dfa2fb5

Please sign in to comment.