Skip to content

Commit 00baecf

Browse files
committed
revert unnecessary change
1 parent 42b03b0 commit 00baecf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/state.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ export interface State {
1111
}
1212

1313
export async function saveState(state: State): Promise<void> {
14-
const stateCopy: State = {
15-
auth: state.auth,
16-
};
17-
1814
return new Promise((resolve, reject) => {
19-
fs.writeFile(config.stateFile, JSON.stringify(stateCopy), function (err) {
15+
fs.writeFile(config.stateFile, JSON.stringify(state), function (err) {
2016
if (err) {
2117
return reject(err);
2218
}

0 commit comments

Comments
 (0)