Skip to content

Commit

Permalink
fix: fix issues discovered by sonarcloud (argoproj#5416)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
Alexander Matyushentsev authored Feb 5, 2021
1 parent d9e9a99 commit f0d8129
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/applications/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export function getPodStateReason(pod: appModels.State): {message: string; reaso
} else if (container.state.terminated && container.state.terminated.reason) {
reason = container.state.terminated.reason;
message = container.state.terminated.message;
} else if (container.state.terminated && container.state.terminated.reason) {
} else if (container.state.terminated && !container.state.terminated.reason) {
if (container.state.terminated.signal !== 0) {
reason = `Signal:${container.state.terminated.signal}`;
message = '';
Expand Down
2 changes: 0 additions & 2 deletions ui/src/app/login/components/login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ $logoNegativePath: 'assets/images/argo.png';

.login {
min-height:100vh;
background-position: 15rem;
background-size: cover;
background: linear-gradient(to top left,
rgba(122, 139, 207, 0.8) 0%,
rgba(46, 50, 90, 0.8) 100%),
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/ui-banner/ui-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
position: fixed;
width: 100%;
z-index: 10;
align-items: center;
text-align: center;
color: $argo-color-teal-8;
font-weight: 500;
Expand Down

0 comments on commit f0d8129

Please sign in to comment.