aboutsummaryrefslogtreecommitdiffstats
path: root/src/VideoList.hx
diff options
context:
space:
mode:
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