Skip to content

Commit

Permalink
fix: linting and formatting issues (#765)
Browse files Browse the repository at this point in the history
## What type of PR is this?

/kind style

## What this PR does / why we need it:

This PR addresses linting and formatting issues to improve code
readability and maintain consistency with linting rules.

- Corrected indentation in Go code to resolve golangci-lint issues.
- Reformatted gradient definitions in LESS for better readability.
- Removed an unnecessary line in exceptionList styles.

## Which issue(s) this PR fixes:

Fixes #
  • Loading branch information
elliotxx authored Jan 27, 2025
1 parent 9c880dd commit 777e158
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkg/infra/search/storage/elasticsearch/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (s *Storage) GetResource(ctx context.Context, cluster string, obj runtime.O
return err
}

if len(resp.Hits.Hits) == 0 {
if len(resp.Hits.Hits) == 0 {
return fmt.Errorf("no resource found for cluster: %s, namespace: %s, name: %s", cluster, unObj.GetNamespace(), unObj.GetName())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,18 +251,26 @@
0 2px 4px rgba(149, 128, 247, 0.12);
box-sizing: border-box;
border: 1px solid rgba(149, 128, 247, 0.15);
background-image: radial-gradient(ellipse 489px 674px at 6px 0px,
background-image: radial-gradient(
ellipse 489px 674px at 6px 0px,
#ffffff 0%,
#f3efff 100%),
radial-gradient(ellipse 587px 672px at 433px 513px,
#f3efff 100%
),
radial-gradient(
ellipse 587px 672px at 433px 513px,
#ece6ff95 0%,
#f0e9ff30 100%),
radial-gradient(ellipse 346px 396px at 15px 506px,
#f0e9ff30 100%
),
radial-gradient(
ellipse 346px 396px at 15px 506px,
#e9e3ff90 0%,
#f0e9ff30 100%),
radial-gradient(ellipse 583px 668px at 436px 8px,
#f0e9ff30 100%
),
radial-gradient(
ellipse 583px 668px at 436px 8px,
#ffffff 0%,
#f5f0ff30 100%);
#f5f0ff30 100%
);

.events_content_diagnosisHeader {
padding: 12px 16px;
Expand All @@ -276,10 +284,11 @@
font-weight: 500;
color: #000;
backdrop-filter: blur(8px);
background: linear-gradient(to right,
rgba(255, 255, 255, 0.95),
rgba(243, 239, 255, 0.95));

background: linear-gradient(
to right,
rgba(255, 255, 255, 0.95),
rgba(243, 239, 255, 0.95)
);

.events_content_diagnosisHeader_aiIcon {
width: 18px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,4 +876,3 @@
transform: rotate(360deg);
}
}

0 comments on commit 777e158

Please sign in to comment.