Skip to content

Commit

Permalink
patch: fix for (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Dec 17, 2018
1 parent 1e3b670 commit bf81831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manipulatefragranceitems/HandleCollection.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func ManualUpdate() {
// RemoveFromCollection takes the name of the fragrance to remove, removes it from the collection and then regenerated the json file
func RemoveFromCollection() {
currentCollection := ReadInCollection(MASTER)
if len(currentCollection.MasterCollection) == 0 {
fmt.Println("\nYour collection is empty.")
os.Exit(0)
}
fmt.Println("Please type in the number of the fragrance you'd like to remove:")
inputAsInt := ShowOptionsAndGetNumericInput(currentCollection)
inputIndex := inputAsInt - 1
Expand Down

0 comments on commit bf81831

Please sign in to comment.