aboutsummaryrefslogtreecommitdiffstats
path: root/src/VideoList.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-07-04 03:59:50 +0300
committerRblSb <msrblsb@gmail.com>2021-07-05 17:04:25 +0300
commitede45cea8706eb8540e466df9861c2af8ebf9c44 (patch)
tree74a20a6f082173378f918b48b08542881f31749a /src/VideoList.hx
parent265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff)
Reformat
Diffstat (limited to 'src/VideoList.hx')
-rw-r--r--src/VideoList.hx7
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;
}
-
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage