Revert codestyle changes (#40)

* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970"

Code style changes should probably be part of a PR
This commit is contained in:
Eliot Partridge
2019-08-30 10:53:14 -05:00
committed by GitHub
parent eefd9e9a2c
commit caf70a864f
446 changed files with 70667 additions and 70655 deletions
@@ -6,34 +6,34 @@ import { ErrorReporter } from './errorReporter';
@Injectable()
export class RollbarErrorReporter extends ErrorReporter {
constructor(@Inject(RollbarService) private rollbar?: Rollbar) {
super();
}
configureUser(person: Person) {
if (this.rollbar) {
this.rollbar.configure({ payload: { person }, checkIgnore: rollbarCheckIgnore });
}
}
configureData(data: any) {
if (this.rollbar) {
this.rollbar.configure({ payload: data, checkIgnore: rollbarCheckIgnore });
}
}
captureEvent(data: any) {
if (this.rollbar) {
this.rollbar.captureEvent(data, 'info');
}
}
reportError(error: any, data?: any) {
DEVELOPMENT && console.error(error, data);
constructor(@Inject(RollbarService) private rollbar?: Rollbar) {
super();
}
configureUser(person: Person) {
if (this.rollbar) {
this.rollbar.configure({ payload: { person }, checkIgnore: rollbarCheckIgnore });
}
}
configureData(data: any) {
if (this.rollbar) {
this.rollbar.configure({ payload: data, checkIgnore: rollbarCheckIgnore });
}
}
captureEvent(data: any) {
if (this.rollbar) {
this.rollbar.captureEvent(data, 'info');
}
}
reportError(error: any, data?: any) {
DEVELOPMENT && console.error(error, data);
if (this.rollbar && !isIgnoredError(error)) {
this.rollbar.error(error, data);
}
}
disable() {
if (this.rollbar) {
this.rollbar.configure({ enabled: false });
}
}
if (this.rollbar && !isIgnoredError(error)) {
this.rollbar.error(error, data);
}
}
disable() {
if (this.rollbar) {
this.rollbar.configure({ enabled: false });
}
}
}