fix: standard style issues

This commit is contained in:
Rak Laptudirm
2021-10-21 22:59:56 +05:30
parent 65916747d8
commit 22ce7603e4
7 changed files with 20 additions and 56 deletions

View File

@ -33,9 +33,7 @@ class CircularQueue {
}
const y = this.queue[this.front]
this.queue[this.front] = '*'
if (this.checkSingleelement()) {
} else {
if (!this.checkSingleelement()) {
if (this.front === this.maxLength) this.front = 1
else {
this.front += 1