Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
# Ignore IDE project settings (JetBrains, etc.)
.idea

# Ignore Visual Studio Code settings
.vscode

# Ignore vim swap files
.vimrc
1 change: 1 addition & 0 deletions atm-machine/atm/atm.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (a *ATM) InsertPin() error {
func (a *ATM) DispenserAmount() error {
Comment thread
maharshijinandra marked this conversation as resolved.
a.mu.Lock()
if err := a.currentState.DispenserAmount(); err != nil {
a.mu.Unlock()
return err
}

Expand Down