diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:04:57 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:05:55 +0200 |
commit | 075f16caac5236cb04c98ae7b3a989766d764bb3 (patch) | |
tree | 9a30024aa771735a28d83d9a166033b82dbcaf60 /server/models/pod/pod.ts | |
parent | 4e979c3e1b81f4762025d9db3052b1f70774b3bb (diff) | |
download | PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.gz PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.zst PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.zip |
Remove "function" in favor of () => {}
Diffstat (limited to 'server/models/pod/pod.ts')
-rw-r--r-- | server/models/pod/pod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index 62d9e3c6c..e1088977f 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts | |||
@@ -32,7 +32,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
32 | type: DataTypes.STRING, | 32 | type: DataTypes.STRING, |
33 | allowNull: false, | 33 | allowNull: false, |
34 | validate: { | 34 | validate: { |
35 | isHost: function (value) { | 35 | isHost: value => { |
36 | const res = isHostValid(value) | 36 | const res = isHostValid(value) |
37 | if (res === false) throw new Error('Host not valid.') | 37 | if (res === false) throw new Error('Host not valid.') |
38 | } | 38 | } |