Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@tbarlow12
Copy link
Contributor

Cleans up offline files when user interrupts offline process. Allows user to skip cleanup with CLI option.

@tbarlow12 tbarlow12 requested review from pjlittle and wbreza August 8, 2019 18:29
@coveralls
Copy link

coveralls commented Aug 8, 2019

Coverage Status

Coverage decreased (-0.007%) to 84.29% when pulling 976b9a4 on tabarlow/offline-cleanup into 4e46a03 on dev.

Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some minor feedback - otherwise looks good :)

try {
await this.cleanup();
} catch(e) {}
process.exit();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving the process.exit() into a finally block that can be reused for both condidtions.

try {
   // Do all the things
} finally {
  process.exit();
}

lifecycleEvents: [
"start"
]
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming default behavior is to cleanup, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@tbarlow12 tbarlow12 merged commit 3618646 into dev Aug 8, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/offline-cleanup branch August 8, 2019 23:35
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
#233)

Cleans up offline files when user interrupts offline process. Allows user to skip cleanup with CLI option.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants