mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 15:10:54 +00:00
Improved code quality (#154)
* Removed package-lock.json form gitignore as it ensures specific package versions * Updated all @angular web dependencies * Resolved tslint errors using autofix option * Resolved some more tslint issues * Added lint scripts to package.json to easy lint the ts files * Updated codelyzer and tslint * Run web on travis using node 10 and run the lint task * Resolved some more tslint issues after upgrading tslint and codelyzer * Resolved golint issues with regards to exchange comments * Resolved spelling errors shown by goreportcard.com * Resolved gofmt warnings using goreportcard.com * Resolved golint issue by removing unrequired else statement * Refactored slack.go to reduce cyclomatic complexity * Fixed govet issue where Slack was passed as value instead of reference
This commit is contained in:
committed by
Adrian Gallagher
parent
a5f51328d4
commit
0f209165d5
@@ -6,11 +6,11 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./orders.component.scss']
|
||||
})
|
||||
export class OrdersComponent implements OnInit {
|
||||
public orders:Order[] = [];
|
||||
public orders: Order[] = [];
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
var item = new Order();
|
||||
const item = new Order();
|
||||
item.amount = 12;
|
||||
item.price = 23;
|
||||
item.total = 3;
|
||||
@@ -45,15 +45,15 @@ export class OrdersComponent implements OnInit {
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export class Order {
|
||||
public count:number;
|
||||
public total:number;
|
||||
public price:number;
|
||||
public amount:number;
|
||||
}
|
||||
public count: number;
|
||||
public total: number;
|
||||
public price: number;
|
||||
public amount: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user