Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Aug 6, 2019
1 parent ad70851 commit 03bffb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ define(['./utils'], function (utils) {
}

function callback() {
if (self.phase == 0) {
if (self.phase === 0) {
// Spinup complete.
seek(self.params[0]);
return;
Expand All @@ -539,7 +539,7 @@ define(['./utils'], function (utils) {
break;

case 0x0b: // Write
if (self.phase == 1) {
if (self.phase === 1) {
self.curTrack[self.curDrive] = self.params[0];
self.phase = 2;
self.drives[self.curDrive].write(self.curSector, self.params[0], density(), 0);
Expand All @@ -558,7 +558,7 @@ define(['./utils'], function (utils) {

case 0x13: // Read
case 0x1f: // Verify
if (self.phase == 1) {
if (self.phase === 1) {
self.curTrack[self.curDrive] = self.params[0];
self.phase = 2;
self.drives[self.curDrive].read(self.curSector, self.params[0], density(), 0);
Expand All @@ -573,7 +573,7 @@ define(['./utils'], function (utils) {
break;

case 0x1b: // Read ID
if (self.phase == 1) {
if (self.phase === 1) {
self.curTrack[self.curDrive] = self.params[0];
self.phase = 2;
self.drives[self.curDrive].address(self.params[0], density(), 0);
Expand Down

0 comments on commit 03bffb7

Please sign in to comment.