Let's make it very NOICE
This commit is contained in:
parent
d5fd6d0b5a
commit
cf7ab6cc07
@ -23,12 +23,16 @@ namespace utility {
|
||||
}
|
||||
|
||||
someFunction<T>(f: (input: T) => void): Option<T> {
|
||||
f(this.data as T);
|
||||
if (this.data != null) {
|
||||
f(this.data as T);
|
||||
}
|
||||
return this as unknown as Option<T>;
|
||||
}
|
||||
|
||||
noneFunction<T>(f: () => void): Option<T> {
|
||||
f();
|
||||
if (this.data == null) {
|
||||
f();
|
||||
}
|
||||
return this as unknown as Option<T>;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user