Skip to content

Commit

Permalink
unwanted code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
SooryaSoorya committed Apr 29, 2020
1 parent f358481 commit 7c00699
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"deploy": "gh-pages -d dist"
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"private": true,
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions src/app/movie-detail/movie-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ export class MovieDetailComponent implements OnInit {
}

getMovieDetails(id: string) {
console.log(id);
this.movieService.getMovieById(id).subscribe(
(movie) => {
this.movie = movie;
console.log("getMovies", movie);
this.loading = false;
},
(error) => (this.loading = false)
Expand Down
1 change: 0 additions & 1 deletion src/app/movie/movie.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class MovieComponent implements OnInit {
public loading: boolean;

sortBy: any = "Select";
public l = console.log;

constructor(private movieService: MovieService) {
this.loading = true;
Expand Down
2 changes: 0 additions & 2 deletions src/app/movie/services/movie.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export class MovieService {

private handleError<T>(operation = "operation", result?: T) {
return (error: any): Observable<T> => {
console.log(`${operation} failed: ${error.message}`);
// Let the app keep running by returning an empty result.
return of(result as T);
};
}
Expand Down
1 change: 0 additions & 1 deletion src/app/nav-menu/nav-menu.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe("NavMenuComponent", () => {
preventDefault: function () {},
target: { innerText: "Action" },
};
console.log("ElementRef", event);
const { build } = setup().default();
const c = build();
fixture.detectChanges();
Expand Down

0 comments on commit 7c00699

Please sign in to comment.