appwrite-tools icon indicating copy to clipboard operation
appwrite-tools copied to clipboard

Some small improvements

Open Emiliaaah opened this issue 3 years ago • 0 comments

Improvements:

  • Use switch statement instead of if else
  • action option is now case insensitive
  • Add try catch to backup operation so it removes the file if there is an error

I wasn't able to test these changes with an Appwrite instance since I currently don't have one setup I can test this with. Since I didn't change any of the essential code it should all be working like it was. I'd love for you to test these changes on your end to make sure these changes don't affect normal operation.

Emiliaaah avatar Jan 07 '22 14:01 Emiliaaah