Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Tidied
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanrogers committed Apr 9, 2012
1 parent a3d2eed commit 8f77b28
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/App/SimplenoteSync.pm
Expand Up @@ -49,8 +49,8 @@ has simplenote => (
default => sub {
my $self = shift;
return WebService::Simplenote->new(
email => $self->email,
password => $self->password,
email => $self->email,
password => $self->password,
no_server_updates => $self->no_server_updates,
);
},
Expand Down Expand Up @@ -181,9 +181,9 @@ sub _get_note {
$self->notes->{ $note->key } = $note;

$self->_write_note_metadata( $note );

$self->stats->{new_remote}++;

return 1;
}

Expand Down Expand Up @@ -304,11 +304,12 @@ sub _process_local_notes {
$self->logger->infof( 'Scanning [%d] files in [%s]', $num_files, $self->notes_dir->stringify );
while ( my $f = $self->notes_dir->next ) {
next unless -f $f;

$self->logger->debug( "Checking local file [$f]" );

# TODO: configure file extensions, or use mime types?
next if $f !~ /\.(txt|mkdn)$/;

my $content = $f->slurp; # TODO: iomode + encoding

my $note = App::SimplenoteSync::Note->new(
Expand Down

0 comments on commit 8f77b28

Please sign in to comment.