Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: mashaal <omar@teacups.io>
  • Loading branch information
mashaal committed Jan 5, 2017
1 parent 5a308c5 commit 216a7d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion components/errors/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const rotateKeyframes = keyframes({

const styles = {
base: {
padding: '0em 2em',
padding: '1em 2em',
background: 'rgba(92, 67, 232, .8)',
marginBottom: '1em',
fontWeight: 800,
Expand All @@ -36,13 +36,19 @@ const styles = {
icon: {
color: 'red',
fontSize: '400%',
lineHeight: '1em',
width: '1em',
textAlign: 'center',
transformOrigin: '50% 50%',
animation: 'x .33s infinite alternate ease-in-out',
animationName: rotateKeyframes
},
mark: {
color: 'white',
fontSize: '400%',
lineHeight: '1em',
width: '1em',
textAlign: 'center',
transformOrigin: '50% 50%',
animation: 'x .33s infinite alternate ease-in-out',
animationName: rotateKeyframes
Expand Down
8 changes: 4 additions & 4 deletions components/metadata/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ export default class Editor extends Component {
"-metadata", `disctotal=${this.props.selected.disk.of}`
)
.save(temp)
.on('error', (err, stdout, stderr) => {
console.log('Cannot process metadata: ' + err.message)
.on('error', (error, stdout, stderr) => {
console.log('Cannot process metadata: ' + error.message)
fs.unlinkSync(temp)
})
.on('end', (stdout, stderr) => {
let source = fs.createReadStream(temp)
let dest = fs.createWriteStream(this.props.selected.path)
source.pipe(dest)
source.on('error', function(err) {
console.log('Cannot process metadata: ' + err.message)
source.on('error', (error) => {
console.log('Cannot process metadata: ' + error.message)
fs.unlinkSync(temp)
})
source.on('end', () => {
Expand Down

0 comments on commit 216a7d5

Please sign in to comment.