Skip to content

Commit

Permalink
lib: in watt-time model fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Feb 7, 2024
1 parent c1a9221 commit ad60659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/watt-time/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class WattTimeGridEmissions implements ModelPluginInterface {
startTime: string;
fetchDuration: number;
} {
let {startTime, endtime} = inputs.reduce(
const {startTime, endtime} = inputs.reduce(
(acc, input) => {
const {duration, timestamp} = input;
const dayjsTimestamp = dayjs(timestamp);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/watt-time/watt-time-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {WattTimeParams, WattAuthType} from './types';
const {AuthorizationError, APIRequestError} = ERRORS;

export class WattTimeAPI {
private baseUrl: string = 'https://api2.watttime.org/v2';
private token: string = '';
private baseUrl = 'https://api2.watttime.org/v2';
private token = '';

errorBuilder = buildErrorMessage(WattTimeAPI);

Expand Down

0 comments on commit ad60659

Please sign in to comment.