Skip to content

Commit e2e28bb

Browse files
committed
feat: update role.swift
1 parent 7000a20 commit e2e28bb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

templates/swift/Sources/ID.swift.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ public class ID {
44
}
55

66
public static func unique() -> String {
7-
return 'unique()'
7+
return "unique()"
88
}
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
public class Role {
22
public static func any() -> String {
3-
return 'any'
3+
return "any"
44
}
55

66
public static func user(_ id: String) -> String {
7-
return 'user:\(id)'
7+
return "user:\(id)"
88
}
99

1010
public static func users() -> String {
11-
return 'users'
11+
return "users"
1212
}
1313

1414
public static func guests() -> String {
15-
return 'guests'
15+
return "guests"
1616
}
1717

1818
public static func team(_ id: String, _ role: String = "") -> String {
1919
if(role.isEmpty) {
20-
return 'team:\(id)'
20+
return "team:\(id)"
2121
}
22-
return 'team:\(id)/\(role)'
22+
return "team:\(id)/\(role)"
2323
}
2424

2525
public static func status(_ status: String) -> String {
26-
return 'status:\(status)'
26+
return "status:\(status)"
2727
}
2828
}

0 commit comments

Comments
 (0)