From a172a28e6da9f494cd0bce254ae7c1679c08665d Mon Sep 17 00:00:00 2001 From: swag Date: Sat, 4 Dec 2021 18:50:19 -0500 Subject: [PATCH] Some cleanup --- guestbook-ng.pl | 6 +++--- lib/GuestbookNg/Model/Test.pm | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/guestbook-ng.pl b/guestbook-ng.pl index 0a3c811..c466a2b 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -14,11 +14,11 @@ plugin 'Config'; # Helpers helper pg => sub { state $pg = Mojo::Pg->new( - 'postgres://' . + 'postgres://' . app->config->{'pg_user'} . - ':' . + ':' . app->config->{'pg_pw'} . - '@localhost/' . + '@localhost/' . app->config->{'pg_db'} ); }; diff --git a/lib/GuestbookNg/Model/Test.pm b/lib/GuestbookNg/Model/Test.pm index 6c4c376..09764d9 100644 --- a/lib/GuestbookNg/Model/Test.pm +++ b/lib/GuestbookNg/Model/Test.pm @@ -9,9 +9,7 @@ use Mojo::Base -base, -signatures; has 'pg'; sub new($class, $pg, $object) { - bless { - $pg => $object - } + bless {$pg => $object} } sub test_model($self, $string) {