From 075f16caac5236cb04c98ae7b3a989766d764bb3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2017 17:04:57 +0200 Subject: Remove "function" in favor of () => {} --- server/models/pod/pod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/pod') 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 type: DataTypes.STRING, allowNull: false, validate: { - isHost: function (value) { + isHost: value => { const res = isHostValid(value) if (res === false) throw new Error('Host not valid.') } -- cgit v1.2.3