1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: use a !in b instead of !(a in b)

This commit is contained in:
yuyi
2020-04-26 12:39:23 +08:00
committed by GitHub
parent 2b4ac0e63a
commit 541b058e90
19 changed files with 70 additions and 70 deletions

View File

@@ -123,7 +123,7 @@ fn new_clipboard() &Clipboard {
// Initialize a new clipboard of the given selection type.
// We can initialize multiple clipboard instances and use them separately
fn new_x11_clipboard(selection AtomType) &Clipboard {
if !(selection in [.clipboard, .primary, .secondary]) {
if selection !in [.clipboard, .primary, .secondary] {
panic("Wrong AtomType. Must be one of .primary, .secondary or .clipboard.")
}