Skip to content

Commit

Permalink
Merge pull request #22743 from qmonmert/sonarcodesmells
Browse files Browse the repository at this point in the history
Sonar: fix code smells
  • Loading branch information
DanielFran authored Jul 2, 2023
2 parents 6212ed1 + bda0384 commit 016bb3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
limitations under the License.
-%>
import { Component, OnInit } from '@angular/core';
import { finalize, map } from 'rxjs/operators';
import { finalize<%_ if (applicationTypeGateway && serviceDiscoveryAny) { _%>, map<%_ } _%> } from 'rxjs/operators';

import SharedModule from 'app/shared/shared.module';
import { FormsModule } from '@angular/forms';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-%>
import { inject } from '@angular/core';
import { ActivatedRouteSnapshot, Routes, ResolveFn } from '@angular/router';
import { Observable, of } from 'rxjs';
import { of } from 'rxjs';

import { IUser } from './user-management.model';
import { UserManagementService } from './service/user-management.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ _%>
private static final String FIELD_ERRORS_KEY = "fieldErrors";
private static final String MESSAGE_KEY = "message";
private static final String PATH_KEY = "path";
private static final boolean CASUAL_CHAIN_ENABLED = false;

@Value("${jhipster.clientApp.name}")
private String applicationName;
Expand Down Expand Up @@ -340,7 +341,7 @@ _%>

private boolean isCasualChainEnabled() {
// Customize as per the needs
return false;
return CASUAL_CHAIN_ENABLED;
}

private boolean containsPackageName(String message) {
Expand Down

0 comments on commit 016bb3b

Please sign in to comment.