Skip to content

HomeWork 4#5

Open
abercromb wants to merge 4 commits intomasterfrom
lesson4
Open

HomeWork 4#5
abercromb wants to merge 4 commits intomasterfrom
lesson4

Conversation

@abercromb
Copy link
Owner

No description provided.


func changeVolume(action: VolumeAction, count: Double){
switch action {
case .add:
Copy link

Choose a reason for hiding this comment

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

старайся не делать if внутри switch (это плохо читается). Все можно сделать switc-ом

}


case .get:
Copy link

Choose a reason for hiding this comment

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

называешь фукнцию change и исползуешь кейс get?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants