Skip to content

Commit 9479580

Browse files
committed
run v fmt -w ., check that vorum compiles cleanly with latest V 0.4.8 65038a4
1 parent ea84f10 commit 9479580

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

post.v

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct Post {
77
id int
88
title string
99
text string
10-
url string @[skip]
10+
url string @[skip]
1111
nr_comments int
1212
time time.Time @[orm: skip]
1313
last_reply time.Time
@@ -40,7 +40,7 @@ order by last_reply desc')!
4040
return [
4141
Post{
4242
title: 'Hello world!'
43-
text: 'Hello world from Vorum ;)'
43+
text: 'Hello world from Vorum ;)'
4444
},
4545
]
4646
}
@@ -52,12 +52,12 @@ order by last_reply desc')!
5252
ts := row.vals[3]
5353
is_locked := row.vals[5]
5454
posts << Post{
55-
id: id or { '' }.int()
56-
url: '/post/${id}'
57-
title: title or { '' }
55+
id: id or { '' }.int()
56+
url: '/post/${id}'
57+
title: title or { '' }
5858
nr_comments: nr_comments or { '' }.int()
59-
time: time.unix(ts or { '' }.int())
60-
is_locked: is_locked or { '' } == 't'
59+
time: time.unix(ts or { '' }.int())
60+
is_locked: is_locked or { '' } == 't'
6161
}
6262
}
6363
return posts

0 commit comments

Comments
 (0)