Skip to content

Commit

Permalink
chore(lint): include lint in build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashgear authored and traefiker committed Feb 5, 2019
1 parent f19c497 commit 85e07d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions webui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ RUN yarn install
COPY . $WEBUI_DIR/

EXPOSE 8080

RUN yarn lint
9 changes: 3 additions & 6 deletions webui/src/app/services/api.service.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import 'rxjs/add/observable/empty';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/retry';
import { Observable } from 'rxjs/Observable';
import { empty } from 'rxjs';
import {catchError, retry} from "rxjs/internal/operators";

import { EMPTY } from 'rxjs/internal/observable/empty';

export interface ProviderType {
[provider: string]: {
Expand All @@ -32,7 +29,7 @@ export class ApiService {
.retry(4)
.catch((err: HttpErrorResponse) => {
console.error(`[version] returned code ${err.status}, body was: ${err.error}`);
return Observable.empty();
return EMPTY;
});
}

Expand All @@ -41,7 +38,7 @@ export class ApiService {
.retry(2)
.catch((err: HttpErrorResponse) => {
console.error(`[health] returned code ${err.status}, body was: ${err.error}`);
return Observable.empty();
return EMPTY;
});
}

Expand Down

0 comments on commit 85e07d5

Please sign in to comment.