diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-04 03:59:50 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-05 17:04:25 +0300 |
| commit | ede45cea8706eb8540e466df9861c2af8ebf9c44 (patch) | |
| tree | 74a20a6f082173378f918b48b08542881f31749a /src/VideoList.hx | |
| parent | 265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff) | |
Reformat
Diffstat (limited to 'src/VideoList.hx')
| -rw-r--r-- | src/VideoList.hx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/VideoList.hx b/src/VideoList.hx index 0799cfa..ef1d113 100644 --- a/src/VideoList.hx +++ b/src/VideoList.hx @@ -7,10 +7,8 @@ import Types.VideoItem; // items:Array<VideoItem>, // itemPos:Int // } - @:forward abstract VideoList(Array<VideoItem>) from Array<VideoItem> to Array<VideoItem> { - public function new() { this = []; } @@ -68,8 +66,9 @@ abstract VideoList(Array<VideoItem>) from Array<VideoItem> to Array<VideoItem> { public function itemsByUser(client:Client):Int { var i = 0; - for (item in this) if (item.author == client.name) i++; + for (item in this) { + if (item.author == client.name) i++; + } return i; } - } |
